summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/gated-bad-feature.stderr
blob: 2d01bdf3c1dffa2b6c7fcc0ce8aef1b439f5fc73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
error[E0556]: malformed `feature` attribute input
  --> $DIR/gated-bad-feature.rs:1:25
   |
LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
   |                         ^^^^^^^^ help: expected just one word: `foo`

error[E0556]: malformed `feature` attribute input
  --> $DIR/gated-bad-feature.rs:1:35
   |
LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
   |                                   ^^^^^^^^^^^ help: expected just one word: `foo`

error[E0557]: feature has been removed
  --> $DIR/gated-bad-feature.rs:8:12
   |
LL | #![feature(test_removed_feature)]
   |            ^^^^^^^^^^^^^^^^^^^^ feature has been removed

error: malformed `feature` attribute input
  --> $DIR/gated-bad-feature.rs:6:1
   |
LL | #![feature]
   | ^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name2, ...)]`

error: malformed `feature` attribute input
  --> $DIR/gated-bad-feature.rs:7:1
   |
LL | #![feature = "foo"]
   | ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name2, ...)]`

error[E0635]: unknown feature `foo_bar_baz`
  --> $DIR/gated-bad-feature.rs:1:12
   |
LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
   |            ^^^^^^^^^^^

error[E0635]: unknown feature `foo`
  --> $DIR/gated-bad-feature.rs:1:48
   |
LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
   |                                                ^^^

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0556, E0557, E0635.
For more information about an error, try `rustc --explain E0556`.