Sign in
android
/
toolchain
/
rustc
/
2f3fdfeb95384b9046ea35b3532e23c652eca660
/
.
/
src
/
test
/
ui
/
shadowed
/
shadowed-trait-methods.rs
blob: f9c25d9791314c352ce3cc0f4073ef793a2747d0 [
file
] [
log
] [
blame
]
// Test that methods from shadowed traits cannot be used
mod
foo
{
pub
trait
T
{
fn
f
(&
self
)
{}
}
impl
T
for
()
{}
}
mod
bar
{
pub
use
foo
::
T
;
}
fn
main
()
{
pub
use
bar
::*;
struct
T
;
().
f
()
//~ ERROR no method
}