19 lines
600 B
Rust
19 lines
600 B
Rust
|
// compile-flags: -Cinstrument-coverage
|
||
|
//~^ ERROR can't find crate for `profiler_builtins`
|
||
|
|
||
|
#![no_core]
|
||
|
#![feature(no_core, 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 the size for values of type `{integer}` cannot be known at compilation time
|
||
|
//~| ERROR cannot find value `x` in this scope
|
||
|
}
|
||
|
|
||
|
fn main() {}
|