|
| 1 | +error[E0565]: malformed `no_std` attribute input |
| 2 | + --> $DIR/malformed-no-std.rs:3:1 |
| 3 | + | |
| 4 | +LL | #![no_std = "foo"] |
| 5 | + | ^^^^^^^^^^-------^ |
| 6 | + | | | |
| 7 | + | | didn't expect any arguments here |
| 8 | + | help: must be of the form: `#![no_std]` |
| 9 | + |
| 10 | +error[E0565]: malformed `no_std` attribute input |
| 11 | + --> $DIR/malformed-no-std.rs:5:1 |
| 12 | + | |
| 13 | +LL | #![no_std("bar")] |
| 14 | + | ^^^^^^^^^-------^ |
| 15 | + | | | |
| 16 | + | | didn't expect any arguments here |
| 17 | + | help: must be of the form: `#![no_std]` |
| 18 | + |
| 19 | +error[E0565]: malformed `no_std` attribute input |
| 20 | + --> $DIR/malformed-no-std.rs:7:1 |
| 21 | + | |
| 22 | +LL | #![no_std(foo = "bar")] |
| 23 | + | ^^^^^^^^^-------------^ |
| 24 | + | | | |
| 25 | + | | didn't expect any arguments here |
| 26 | + | help: must be of the form: `#![no_std]` |
| 27 | + |
| 28 | +error[E0565]: malformed `no_core` attribute input |
| 29 | + --> $DIR/malformed-no-std.rs:9:1 |
| 30 | + | |
| 31 | +LL | #![no_core = "foo"] |
| 32 | + | ^^^^^^^^^^^-------^ |
| 33 | + | | | |
| 34 | + | | didn't expect any arguments here |
| 35 | + | help: must be of the form: `#![no_core]` |
| 36 | + |
| 37 | +error[E0565]: malformed `no_core` attribute input |
| 38 | + --> $DIR/malformed-no-std.rs:11:1 |
| 39 | + | |
| 40 | +LL | #![no_core("bar")] |
| 41 | + | ^^^^^^^^^^-------^ |
| 42 | + | | | |
| 43 | + | | didn't expect any arguments here |
| 44 | + | help: must be of the form: `#![no_core]` |
| 45 | + |
| 46 | +error[E0565]: malformed `no_core` attribute input |
| 47 | + --> $DIR/malformed-no-std.rs:13:1 |
| 48 | + | |
| 49 | +LL | #![no_core(foo = "bar")] |
| 50 | + | ^^^^^^^^^^-------------^ |
| 51 | + | | | |
| 52 | + | | didn't expect any arguments here |
| 53 | + | help: must be of the form: `#![no_core]` |
| 54 | + |
| 55 | +error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_std]` |
| 56 | + --> $DIR/malformed-no-std.rs:17:1 |
| 57 | + | |
| 58 | +LL | #[no_std] |
| 59 | + | ^^^^^^^^^ |
| 60 | + | |
| 61 | +note: This attribute does not have an `!`, which means it is applied to this extern crate |
| 62 | + --> $DIR/malformed-no-std.rs:22:1 |
| 63 | + | |
| 64 | +LL | extern crate core; |
| 65 | + | ^^^^^^^^^^^^^^^^^^ |
| 66 | +note: the lint level is defined here |
| 67 | + --> $DIR/malformed-no-std.rs:16:8 |
| 68 | + | |
| 69 | +LL | #[deny(unused_attributes)] |
| 70 | + | ^^^^^^^^^^^^^^^^^ |
| 71 | + |
| 72 | +error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![no_core]` |
| 73 | + --> $DIR/malformed-no-std.rs:19:1 |
| 74 | + | |
| 75 | +LL | #[no_core] |
| 76 | + | ^^^^^^^^^^ |
| 77 | + | |
| 78 | +note: This attribute does not have an `!`, which means it is applied to this extern crate |
| 79 | + --> $DIR/malformed-no-std.rs:22:1 |
| 80 | + | |
| 81 | +LL | extern crate core; |
| 82 | + | ^^^^^^^^^^^^^^^^^^ |
| 83 | + |
| 84 | +error: aborting due to 8 previous errors |
| 85 | + |
| 86 | +For more information about this error, try `rustc --explain E0565`. |
0 commit comments