]> git.lizzy.rs Git - rust.git/blob - src/test/ui/gated-bad-feature.stderr
Rollup merge of #53274 - bjorn3:remove_statics_field, r=nagisa
[rust.git] / src / test / ui / gated-bad-feature.stderr
1 error[E0556]: malformed feature, expected just one word
2   --> $DIR/gated-bad-feature.rs:13:5
3    |
4 LL |     foo(bar),
5    |     ^^^^^^^^
6
7 error[E0556]: malformed feature, expected just one word
8   --> $DIR/gated-bad-feature.rs:14:5
9    |
10 LL |     foo = "baz"
11    |     ^^^^^^^^^^^
12
13 error[E0555]: malformed feature attribute, expected #![feature(...)]
14   --> $DIR/gated-bad-feature.rs:19:1
15    |
16 LL | #![feature] //~ ERROR: malformed feature
17    | ^^^^^^^^^^^
18
19 error[E0555]: malformed feature attribute, expected #![feature(...)]
20   --> $DIR/gated-bad-feature.rs:20:1
21    |
22 LL | #![feature = "foo"] //~ ERROR: malformed feature
23    | ^^^^^^^^^^^^^^^^^^^
24
25 error[E0557]: feature has been removed
26   --> $DIR/gated-bad-feature.rs:22:12
27    |
28 LL | #![feature(test_removed_feature)] //~ ERROR: feature has been removed
29    |            ^^^^^^^^^^^^^^^^^^^^
30
31 error[E0601]: `main` function not found in crate `gated_bad_feature`
32    |
33    = note: consider adding a `main` function to `$DIR/gated-bad-feature.rs`
34
35 error: aborting due to 6 previous errors
36
37 Some errors occurred: E0555, E0556, E0557, E0601.
38 For more information about an error, try `rustc --explain E0555`.