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

25 lines
675 B
Plaintext
Raw Normal View History

2018-07-14 09:40:17 -05:00
error[E0453]: allow(test_lint) overruled by outer forbid(test_lint)
2018-12-25 09:56:47 -06:00
--> $DIR/lint-plugin-forbid-attrs.rs:10:9
2018-07-14 09:40:17 -05:00
|
LL | #![forbid(test_lint)]
| --------- `forbid` level set here
...
LL | #[allow(test_lint)]
| ^^^^^^^^^ overruled by previous forbid
2017-12-10 15:00:10 -06:00
error: item is named 'lintme'
2018-12-25 09:56:47 -06:00
--> $DIR/lint-plugin-forbid-attrs.rs:8:1
2017-12-10 15:00:10 -06:00
|
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
2018-12-25 09:56:47 -06:00
--> $DIR/lint-plugin-forbid-attrs.rs:6:11
2017-12-10 15:00:10 -06:00
|
2018-02-22 18:42:32 -06:00
LL | #![forbid(test_lint)]
2017-12-10 15:00:10 -06:00
| ^^^^^^^^^
error: aborting due to 2 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0453`.