Sign in
◑
Theme
rust
/
rust
/
2a61ba8577ed3c3e1cfeb433d06cf5464ff2fdf3
/
.
/
tests
/
ui
/
traits
/
negative-impls
/
negative-default-impls.rs
blob: 2d50bc83ec304f2a1847298744ca511f5f462bf3 [
file
]
#![
feature
(
negative_impls
)]
#![
feature
(
specialization
)]
trait
MyTrait
{
type
Foo
;
}
default
impl
!
MyTrait
for
u32
{}
//~ ERROR negative impls cannot be default impls
fn
main
()
{}