#[macro_use] #[no_link]
extern crate macro_reexport_1;
//~^ ERROR macros reexports are experimental and possibly buggy
-//~| HELP add #![feature(macro_reexport)] to the crate attributes to enable
match x {
box 1 => (),
//~^ box pattern syntax is experimental
- //~| add #![feature(box_patterns)] to the crate attributes to enable
_ => ()
};
}
fn main() {
let x = box 3;
//~^ ERROR box expression syntax is experimental; you can call `Box::new` instead.
- //~| HELP add #![feature(box_syntax)] to the crate attributes to enable
}
#[link_args = "aFdEfSeVEEE"]
extern {}
//~^ ERROR the `link_args` attribute is not portable across platforms
-//~| HELP add #![feature(link_args)] to the crate attributes to enable
fn main() { }
#[link_name = "llvm.sqrt.f32"]
fn sqrt(x: f32) -> f32;
//~^ ERROR linking to LLVM intrinsics is experimental
- //~| HELP add #![feature(link_llvm_intrinsics)] to the crate attributes
}
fn main(){
#[plugin_registrar]
pub fn registrar() {}
//~^ ERROR compiler plugins are experimental
-//~| HELP add #![feature(plugin_registrar)] to the crate attributes to enable
fn main() {}
#[unsafe_destructor]
//~^ ERROR `#[unsafe_destructor]` does nothing anymore
-//~| HELP: add #![feature(unsafe_destructor)] to the crate attributes to enable
-// (but of couse there is no point in doing so)
impl<'a> Drop for D<'a> {
fn drop(&mut self) { }
}