]> git.proxmox.com Git - rustc.git/blob - tests/ui/coherence/issue-85026.rs
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / tests / ui / coherence / issue-85026.rs
1 #![feature(auto_traits)]
2 auto trait AutoTrait {}
3
4 // You cannot impl your own `dyn AutoTrait`.
5 impl dyn AutoTrait {} //~ERROR E0785
6
7 // You cannot impl someone else's `dyn AutoTrait`
8 impl dyn Unpin {} //~ERROR E0785
9
10 fn main() {}