summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-27078.rs
blob: 5f09b9587b15a0d2bdb58866dc90c0064bcc98e8 (plain)
1
2
3
4
5
6
7
8
9
trait Foo {
    const BAR: i32;
    fn foo(self) -> &'static i32 {
        //~^ ERROR the size for values of type
        &<Self>::BAR
    }
}

fn main() {}