rust/src/test/ui/feature-gates/gated-bad-feature.stderr

35 lines
1.2 KiB
Plaintext
Raw Normal View History

error[E0556]: malformed `feature` attribute input
--> $DIR/gated-bad-feature.rs:1:25
2018-08-08 07:28:26 -05:00
|
LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
| ^^^^^^^^ help: expected just one word: `foo`
2018-08-08 07:28:26 -05:00
error[E0556]: malformed `feature` attribute input
--> $DIR/gated-bad-feature.rs:1:35
2018-08-08 07:28:26 -05:00
|
LL | #![feature(foo_bar_baz, foo(bar), foo = "baz", foo)]
| ^^^^^^^^^^^ help: expected just one word: `foo`
2018-08-08 07:28:26 -05:00
error[E0557]: feature has been removed
--> $DIR/gated-bad-feature.rs:8:12
|
2019-03-09 06:03:44 -06:00
LL | #![feature(test_removed_feature)]
| ^^^^^^^^^^^^^^^^^^^^ feature has been removed
error: malformed `feature` attribute input
--> $DIR/gated-bad-feature.rs:5:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #![feature]
| ^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name1, ...)]`
2018-08-08 07:28:26 -05:00
error: malformed `feature` attribute input
--> $DIR/gated-bad-feature.rs:6:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #![feature = "foo"]
| ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#![feature(name1, name1, ...)]`
2018-08-08 07:28:26 -05:00
error: aborting due to 5 previous errors
2018-08-08 07:28:26 -05:00
2019-10-03 07:11:39 -05:00
Some errors have detailed explanations: E0556, E0557.
For more information about an error, try `rustc --explain E0556`.