2022-10-13 06:07:39 +00:00
|
|
|
// normalize-stderr-test "loaded from .*libcore-.*.rlib" -> "loaded from SYSROOT/libcore-*.rlib"
|
2022-10-13 04:07:56 +00:00
|
|
|
|
2022-10-14 17:45:11 +00:00
|
|
|
#![feature(lang_items)]
|
2022-10-13 04:07:56 +00:00
|
|
|
#[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
|
|
|
|
let x = x << 1;
|
2022-11-06 16:28:07 +00:00
|
|
|
//~^ ERROR cannot find value `x` in this scope
|
2022-10-13 04:07:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|