rust/tests/ui/rfc-2397-do-not-recommend/unstable-feature.rs

11 lines
145 B
Rust
Raw Normal View History

2023-01-12 05:41:21 -06:00
trait Foo {
}
2023-01-09 17:51:01 -06:00
#[do_not_recommend]
//~^ ERROR the `#[do_not_recommend]` attribute is an experimental feature
2023-01-12 05:41:21 -06:00
impl Foo for i32 {
2023-01-09 17:51:01 -06:00
}
fn main() {
}