aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/name_resolution2.rs
blob: 564c5d20ea5d0a2670ef76b84d73989f8d98b765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[lang = "sized"]
pub trait Sized {}

struct Bar;

trait Foo {
    fn bar(&self) {}
}

pub fn outer() {
    impl Foo for Bar {}
}

fn main() {
    Bar.bar();
}