1 // A slight variation of issue-85071.rs. Here, a method is called instead
2 // of a function, and the warning is about an unreachable definition
3 // instead of an unreachable expression.
7 #![warn(unused_variables,unreachable_code)]
13 fn f(&self) -> Foo {todo!()}
19 //~^ WARNING: unused variable: `x`
21 //~^ WARNING: unreachable definition