rust/tests/ui/assoc-lang-items.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
366 B
Rust
Raw Normal View History

#![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() {}