
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
9 lines
194 B
Rust
9 lines
194 B
Rust
//@ run-pass
|
|
|
|
trait Str { fn foo(&self) {} } //~ WARN method `foo` is never used
|
|
impl Str for str {}
|
|
impl<'a, S: ?Sized> Str for &'a S where S: Str {}
|
|
|
|
fn main() {
|
|
let _: &dyn Str = &"x";
|
|
}
|