-
Couldn't load subscription status.
- Fork 13.9k
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Milestone
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)Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.