fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: attribute should be applied to a trait 2 --> $DIR/marker-attribute-on-non-trait.rs:3:1 3 | 4LL | #[marker] 5 | ^^^^^^^^^ 6LL | struct Struct {} 7 | ---------------- not a trait 8 9error: attribute should be applied to a trait 10 --> $DIR/marker-attribute-on-non-trait.rs:6:1 11 | 12LL | #[marker] 13 | ^^^^^^^^^ 14LL | impl Struct {} 15 | -------------- not a trait 16 17error: attribute should be applied to a trait 18 --> $DIR/marker-attribute-on-non-trait.rs:9:1 19 | 20LL | #[marker] 21 | ^^^^^^^^^ 22LL | / union Union { 23LL | | x: i32, 24LL | | } 25 | |_- not a trait 26 27error: attribute should be applied to a trait 28 --> $DIR/marker-attribute-on-non-trait.rs:14:1 29 | 30LL | #[marker] 31 | ^^^^^^^^^ 32LL | const CONST: usize = 10; 33 | ------------------------ not a trait 34 35error: attribute should be applied to a trait 36 --> $DIR/marker-attribute-on-non-trait.rs:17:1 37 | 38LL | #[marker] 39 | ^^^^^^^^^ 40LL | fn function() {} 41 | ---------------- not a trait 42 43error: attribute should be applied to a trait 44 --> $DIR/marker-attribute-on-non-trait.rs:20:1 45 | 46LL | #[marker] 47 | ^^^^^^^^^ 48LL | type Type = (); 49 | --------------- not a trait 50 51error: aborting due to 6 previous errors 52