Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
traits
/
trait-upcasting
/
multiple_supertrait_upcastable.rs
blob: 626630e60b720e94cee5842b66289abb97bcf610 [
file
] [
log
] [
blame
]
#![
feature
(
multiple_supertrait_upcastable
)]
#![
deny
(
multiple_supertrait_upcastable
)]
trait
A
{}
trait
B
{}
trait
C
:
A
+
B
{}
//~^ ERROR `C` is dyn-compatible and has multiple supertraits
fn
main
()
{}