summaryrefslogtreecommitdiffstats
path: root/tests/ui/lang-items/issue-19660.rs
blob: 400ac310b964906838ffda0b66c9994a7a0a9cfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// error-pattern: requires `copy` lang_item

#![feature(lang_items, start, no_core)]
#![no_core]

#[lang = "sized"]
trait Sized { }

struct S;

#[start]
fn main(_: isize, _: *const *const u8) -> isize {
    let _ = S;
    0
}