Sign in
◑
Theme
rust
/
rust
/
c1f7fa1a48a060b980cb45ffde00a9b0cddac7c1
/
.
/
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
()
{}