]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lang-items/missing-clone-for-suggestion.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / lang-items / missing-clone-for-suggestion.rs
CommitLineData
487cf647
FG
1// Avoid panicking if the Clone trait is not found while building error suggestions
2// See #104870
3
4#![feature(no_core, lang_items)]
5#![no_core]
6
7#[lang = "sized"]
8trait Sized {}
9
10#[lang = "copy"]
11trait Copy {}
12
13fn g<T>(x: T) {}
14
15fn f(x: *mut u8) {
16 g(x);
17 g(x); //~ ERROR use of moved value: `x`
18}
19
20fn main() {}