Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-7575.rs
blob: 8b1fdf6c851e25c4c0d79e8aa074d89e3a82d831 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
trait
Foo
{
//~ WARN trait `Foo` is never used
fn
new
()
->
bool
{
false
}
fn
dummy
(&
self
)
{
}
}
trait
Bar
{
fn
new
(&
self
)
->
bool
{
true
}
}
impl
Bar
for
isize
{}
impl
Foo
for
isize
{}
fn
main
()
{
assert
!(
1.new
());
}