mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
21 lines
366 B
Rust
21 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() {}
|