]> git.proxmox.com Git - rustc.git/blame - src/test/ui/auto-traits/issue-23080.rs
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / auto-traits / issue-23080.rs
CommitLineData
fc512014 1#![feature(auto_traits)]
ba9703b0 2#![feature(negative_impls)]
c34b1796 3
2c00a5a8 4unsafe auto trait Trait {
ba9703b0 5 fn method(&self) { //~ ERROR E0380
c34b1796 6 println!("Hello");
85aaf69f 7 }
223e47cc 8}
c34b1796 9
c34b1796
AL
10fn call_method<T: Trait>(x: T) {
11 x.method();
12}
13
14fn main() {
15 // ICE
16 call_method(());
17}