2018-08-08 07:28:26 -05:00
|
|
|
error: use of deprecated item 'loud::DeprecatedType'
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/deprecation-lint-nested.rs:55:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | struct Foo(DeprecatedType); //~ ERROR use of deprecated item
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/deprecation-lint-nested.rs:1:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(deprecated)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of deprecated item 'loud::DeprecatedTrait'
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/deprecation-lint-nested.rs:57:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl DeprecatedTrait for Foo {} //~ ERROR use of deprecated item
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of deprecated item 'loud::DEPRECATED_STATIC'
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/deprecation-lint-nested.rs:66:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | DEPRECATED_STATIC + //~ ERROR use of deprecated item
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of deprecated item 'loud::DEPRECATED_CONST'
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/deprecation-lint-nested.rs:67:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | DEPRECATED_CONST //~ ERROR use of deprecated item
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of deprecated item 'loud::DeprecatedTrait'
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/deprecation-lint-nested.rs:60:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | fn bar<T: DeprecatedTrait>() { //~ ERROR use of deprecated item
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: use of deprecated item 'loud::deprecated_fn'
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/deprecation-lint-nested.rs:61:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | deprecated_fn(); //~ ERROR use of deprecated item
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|