Auto merge of #28948 - steveklabnik:gh28944, r=alexcrichton
"Crate features" isn't a thing in Rust, but you do need to add this line to your crate root. Fixes #28944
This commit is contained in:
commit
9dafceb1f9
3 changed files with 3 additions and 3 deletions
|
@ -131,7 +131,7 @@ impl<'cx, 'tcx> WritebackCx<'cx, 'tcx> {
|
||||||
"overloaded augmented assignments are not stable");
|
"overloaded augmented assignments are not stable");
|
||||||
fileline_help!(
|
fileline_help!(
|
||||||
tcx.sess, e.span,
|
tcx.sess, e.span,
|
||||||
"add #![feature(augmented_assignments)] to the crate features \
|
"add #![feature(augmented_assignments)] to the crate root \
|
||||||
to enable");
|
to enable");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,5 +21,5 @@ fn main() {
|
||||||
let mut x = Int(0);
|
let mut x = Int(0);
|
||||||
x += 1;
|
x += 1;
|
||||||
//~^ error: overloaded augmented assignments are not stable
|
//~^ error: overloaded augmented assignments are not stable
|
||||||
// | help: add #![feature(augmented_assignments)] to the crate features to enable
|
// | help: add #![feature(augmented_assignments)] to the crate root to enable
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,5 +22,5 @@ fn main() {
|
||||||
let mut x = Int(0);
|
let mut x = Int(0);
|
||||||
x += 1;
|
x += 1;
|
||||||
//~^ error: overloaded augmented assignments are not stable
|
//~^ error: overloaded augmented assignments are not stable
|
||||||
// | help: add #![feature(augmented_assignments)] to the crate features to enable
|
// | help: add #![feature(augmented_assignments)] to the crate root to enable
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue