]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/issue-85026.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.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() {}