rust/tests/ui/feature-gates/feature-gate-rustc-attrs.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.4 KiB
Plaintext
Raw Normal View History

error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
2019-06-30 10:00:45 +00:00
--> $DIR/feature-gate-rustc-attrs.rs:8:3
|
LL | #[rustc::unknown]
| ^^^^^
error: expected attribute, found macro `rustc::unknown`
--> $DIR/feature-gate-rustc-attrs.rs:8:3
2019-06-30 10:00:45 +00:00
|
LL | #[rustc::unknown]
| ^^^^^^^^^^^^^^ not an attribute
2019-06-30 10:00:45 +00:00
error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
2019-06-30 10:00:45 +00:00
--> $DIR/feature-gate-rustc-attrs.rs:13:12
|
LL | #[unknown::rustc]
| ^^^^^
error: expected attribute, found macro `unknown::rustc`
--> $DIR/feature-gate-rustc-attrs.rs:13:3
2019-06-30 10:00:45 +00:00
|
LL | #[unknown::rustc]
| ^^^^^^^^^^^^^^ not an attribute
2019-06-30 10:00:45 +00:00
error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
2019-06-30 10:00:45 +00:00
--> $DIR/feature-gate-rustc-attrs.rs:20:3
|
LL | #[rustc_unknown]
| ^^^^^^^^^^^^^
error: cannot find attribute `rustc_unknown` in this scope
2019-06-30 10:00:45 +00:00
--> $DIR/feature-gate-rustc-attrs.rs:20:3
|
LL | #[rustc_unknown]
| ^^^^^^^^^^^^^
error[E0658]: the `#[rustc_dummy]` attribute is just used for rustc unit tests and will never be stable
2019-06-30 10:00:45 +00:00
--> $DIR/feature-gate-rustc-attrs.rs:18:1
|
LL | #[rustc_dummy]
| ^^^^^^^^^^^^^^
|
= help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
2019-06-30 10:00:45 +00:00
error: aborting due to 7 previous errors
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0658`.