Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
coherence
/
issue-85026.rs
blob: 8b116545aa696e27dd35275c11148d27214d85e2 [
file
] [
log
] [
blame
]
#![
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
()
{}