rust/tests/ui/lang-items/required-lang-item.rs

11 lines
204 B
Rust

//@ edition: 2018
#![feature(lang_items, no_core)]
#![no_core]
#![no_main]
#[lang="copy"] pub trait Copy { }
#[lang="sized"] pub trait Sized { }
async fn x() {} //~ ERROR requires `ResumeTy` lang_item