rust/tests/ui/coherence/issue-85026.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
230 B
Rust
Raw Normal View History

#![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() {}