summaryrefslogtreecommitdiffstats
path: root/tests/ui/coherence/issue-85026.rs
blob: 8b116545aa696e27dd35275c11148d27214d85e2 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(auto_traits)]
auto trait AutoTrait {}

// You cannot impl your own `dyn AutoTrait`.
impl dyn AutoTrait {} //~ERROR E0785

// You cannot impl someone else's `dyn AutoTrait`
impl dyn Unpin {} //~ERROR E0785

fn main() {}