rust/tests/ui/conditional-compilation/cfg-attr-multi-true.stderr

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

45 lines
1.1 KiB
Plaintext
Raw Normal View History

warning: use of deprecated struct `MustUseDeprecated`
--> $DIR/cfg-attr-multi-true.rs:12:6
|
2019-03-09 12:03:44 +00:00
LL | impl MustUseDeprecated {
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated struct `MustUseDeprecated`
--> $DIR/cfg-attr-multi-true.rs:19:5
|
2019-03-09 12:03:44 +00:00
LL | MustUseDeprecated::new();
2021-03-13 16:14:18 +00:00
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated struct `MustUseDeprecated`
--> $DIR/cfg-attr-multi-true.rs:13:17
|
2019-03-09 12:03:44 +00:00
LL | fn new() -> MustUseDeprecated {
| ^^^^^^^^^^^^^^^^^
warning: use of deprecated struct `MustUseDeprecated`
--> $DIR/cfg-attr-multi-true.rs:14:9
|
2019-03-09 12:03:44 +00:00
LL | MustUseDeprecated {}
| ^^^^^^^^^^^^^^^^^
warning: unused `MustUseDeprecated` that must be used
--> $DIR/cfg-attr-multi-true.rs:19:5
|
2019-03-09 12:03:44 +00:00
LL | MustUseDeprecated::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
--> $DIR/cfg-attr-multi-true.rs:7:9
|
LL | #![warn(unused_must_use)]
| ^^^^^^^^^^^^^^^
help: use `let _ = ...` to ignore the resulting value
|
LL | let _ = MustUseDeprecated::new();
| +++++++
warning: 5 warnings emitted