1 error: use of deprecated item 'Foo::foo': text
2 --> $DIR/issue-17337.rs:26:6
4 LL | .foo(); //~ ERROR use of deprecated item
7 note: lint level defined here
8 --> $DIR/issue-17337.rs:12:9
10 LL | #![deny(deprecated)]
13 error: aborting due to previous error