summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-102989.rs
blob: f1ecee0a552a736ed06c1cc951bad1a503f7ce90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// normalize-stderr-test "loaded from .*libcore-.*.rlib" -> "loaded from SYSROOT/libcore-*.rlib"

#![feature(lang_items)]
#[lang="sized"]
trait Sized { } //~ ERROR found duplicate lang item `sized`

fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
    //~^ ERROR `self` parameter is only allowed in associated functions
    //~| ERROR cannot find type `Struct` in this scope
    //~| ERROR mismatched types
    let x = x << 1;
    //~^ ERROR cannot find value `x` in this scope
}

fn main() {}