mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
22 lines
366 B
Rust
22 lines
366 B
Rust
|
#![feature(lang_items)]
|
||
|
|
||
|
trait Foo {
|
||
|
#[lang = "dummy_lang_item_1"] //~ ERROR definition
|
||
|
fn foo() {}
|
||
|
|
||
|
#[lang = "dummy_lang_item_2"] //~ ERROR definition
|
||
|
fn bar();
|
||
|
|
||
|
#[lang = "dummy_lang_item_3"] //~ ERROR definition
|
||
|
type MyType;
|
||
|
}
|
||
|
|
||
|
struct Bar;
|
||
|
|
||
|
impl Bar {
|
||
|
#[lang = "dummy_lang_item_4"] //~ ERROR definition
|
||
|
fn test() {}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|