Closed
Description
STR
This compiles when edition = "2018"
// crate-type: lib
#![no_std]
use alloc::vec;
fn foo() {
let mut xs = vec![];
xs.push(0);
}
This doesn't compile when edition = "2015"
because it needs a feature gate.
// crate-type: lib
#![no_std]
extern crate alloc; //~ ERROR use of unstable library feature `alloc`
use alloc::vec;
fn foo() {
let mut xs = vec![];
xs.push(0);
}
Meta
$ rustc -V
rustc 1.30.0-nightly (6e0f1cc15 2018-09-05)