rust/tests/ui/assoc-lang-items.rs
2023-01-11 09:32:08 +00:00

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