rust/src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr

25 lines
687 B
Plaintext
Raw Normal View History

2017-12-10 15:00:10 -06:00
error: item is named 'lintme'
--> $DIR/lint-plugin-forbid-attrs.rs:18:1
|
2018-02-22 18:42:32 -06:00
LL | fn lintme() { } //~ ERROR item is named 'lintme'
2017-12-10 15:00:10 -06:00
| ^^^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/lint-plugin-forbid-attrs.rs:16:11
|
2018-02-22 18:42:32 -06:00
LL | #![forbid(test_lint)]
2017-12-10 15:00:10 -06:00
| ^^^^^^^^^
error[E0453]: allow(test_lint) overruled by outer forbid(test_lint)
--> $DIR/lint-plugin-forbid-attrs.rs:20:9
|
2018-02-22 18:42:32 -06:00
LL | #![forbid(test_lint)]
2017-12-10 15:00:10 -06:00
| --------- `forbid` level set here
...
2018-02-22 18:42:32 -06:00
LL | #[allow(test_lint)]
2017-12-10 15:00:10 -06:00
| ^^^^^^^^^ overruled by previous forbid
error: aborting due to 2 previous errors
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0453"