Files
rust/tests/ui/methods/supertrait-shadowing/definition-site.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
380 B
Rust
Raw Normal View History

#![feature(supertrait_item_shadowing)]
#![deny(supertrait_item_shadowing_definition)]
trait SuperSuper {
fn method();
}
trait Super: SuperSuper {
fn method();
//~^ ERROR trait item `method` from `Super` shadows identically named item
}
trait Sub: Super {
fn method();
//~^ ERROR trait item `method` from `Sub` shadows identically named item
}
fn main() {}