blob: 86049377198c172cc3362cba8a071a8ed03f8e0f (
plain)
1
2
3
4
5
6
7
8
9
|
//@ 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";
}
|