mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
11 lines
230 B
Rust
11 lines
230 B
Rust
#![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() {}
|