46 lines
759 B
Rust
46 lines
759 B
Rust
|
#![feature(do_not_recommend)]
|
||
|
|
||
|
#[do_not_recommend]
|
||
|
//~^ `#[do_not_recommend]` can only be placed
|
||
|
const CONST: () = ();
|
||
|
|
||
|
#[do_not_recommend]
|
||
|
//~^ `#[do_not_recommend]` can only be placed
|
||
|
static Static: () = ();
|
||
|
|
||
|
#[do_not_recommend]
|
||
|
//~^ `#[do_not_recommend]` can only be placed
|
||
|
type Type = ();
|
||
|
|
||
|
#[do_not_recommend]
|
||
|
//~^ `#[do_not_recommend]` can only be placed
|
||
|
enum Enum {
|
||
|
}
|
||
|
|
||
|
#[do_not_recommend]
|
||
|
//~^ `#[do_not_recommend]` can only be placed
|
||
|
extern {
|
||
|
}
|
||
|
|
||
|
#[do_not_recommend]
|
||
|
//~^ `#[do_not_recommend]` can only be placed
|
||
|
fn fun() {
|
||
|
}
|
||
|
|
||
|
#[do_not_recommend]
|
||
|
//~^ `#[do_not_recommend]` can only be placed
|
||
|
struct Struct {
|
||
|
}
|
||
|
|
||
|
#[do_not_recommend]
|
||
|
//~^ `#[do_not_recommend]` can only be placed
|
||
|
trait Trait {
|
||
|
}
|
||
|
|
||
|
#[do_not_recommend]
|
||
|
impl Trait for i32 {
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
}
|