mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 17:48:10 +00:00
9a20cf1697
This reverts commit6d2b84b3ed
, reversing changes made to73bc12199e
.
14 lines
209 B
Rust
14 lines
209 B
Rust
trait Foo {}
|
|
|
|
trait Bar: Foo {}
|
|
|
|
impl Foo for () {}
|
|
|
|
impl Bar for () {}
|
|
|
|
fn main() {
|
|
let bar: &dyn Bar = &();
|
|
let foo: &dyn Foo = bar;
|
|
//~^ ERROR trait upcasting coercion is experimental [E0658]
|
|
}
|