]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/issue-85026.rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / 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() {}