]>
git.proxmox.com Git - rustc.git/blob - tests/ui/coherence/issue-85026.rs
1 #![feature(auto_traits)]
2 auto trait AutoTrait {}
4 // You cannot impl your own `dyn AutoTrait`.
5 impl dyn AutoTrait {}
//~ERROR E0785
7 // You cannot impl someone else's `dyn AutoTrait`
8 impl dyn Unpin {}
//~ERROR E0785