Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
issues
/
issue-17351.rs
blob: 86049377198c172cc3362cba8a071a8ed03f8e0f [
file
] [
log
] [
blame
]
//@ 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"
;
}