]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/issue-102989.rs
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / traits / issue-102989.rs
1 // normalize-stderr-test "loaded from .*libcore-.*.rlib" -> "loaded from SYSROOT/libcore-*.rlib"
2
3 #![feature(lang_items)]
4 #[lang="sized"]
5 trait Sized { } //~ ERROR found duplicate lang item `sized`
6
7 fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
8     //~^ ERROR `self` parameter is only allowed in associated functions
9     //~| ERROR cannot find type `Struct` in this scope
10     let x = x << 1;
11     //~^ ERROR cannot find value `x` in this scope
12 }
13
14 fn main() {}