### STR This compiles when `edition = "2018"` ``` rust // 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. ``` rust // 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 ```console $ rustc -V rustc 1.30.0-nightly (6e0f1cc15 2018-09-05) ```