fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: attribute should be applied to a function definition 2 --> $DIR/naked-invalid-attr.rs:14:1 3 | 4LL | #[naked] 5 | ^^^^^^^^ 6LL | #[repr(C)] 7LL | / struct S { 8LL | | a: u32, 9LL | | b: u32, 10LL | | } 11 | |_- not a function definition 12 13error: attribute should be applied to a function definition 14 --> $DIR/naked-invalid-attr.rs:51:5 15 | 16LL | #[naked] || {}; 17 | ^^^^^^^^ ----- not a function definition 18 19error: attribute should be applied to a function definition 20 --> $DIR/naked-invalid-attr.rs:22:5 21 | 22LL | #[naked] 23 | ^^^^^^^^ 24LL | extern "C" fn invoke(&self); 25 | ---------------------------- not a function definition 26 27error: attribute should be applied to a function definition 28 --> $DIR/naked-invalid-attr.rs:10:5 29 | 30LL | #[naked] 31 | ^^^^^^^^ 32LL | fn f(); 33 | ------- not a function definition 34 35error: attribute should be applied to a function definition 36 --> $DIR/naked-invalid-attr.rs:5:1 37 | 38LL | #![naked] 39 | ^^^^^^^^^ cannot be applied to crates 40 41error: aborting due to 5 previous errors 42