2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:53:35
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn std::fmt::Debug = baz;
|
2021-07-31 10:08:56 -05:00
|
|
|
| -------------------- ^^^ expected trait `Debug`, found trait `Baz`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Debug`
|
|
|
|
found reference `&dyn Baz`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:55:24
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn Send = baz;
|
2021-07-31 10:08:56 -05:00
|
|
|
| --------- ^^^ expected trait `Send`, found trait `Baz`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Send`
|
|
|
|
found reference `&dyn Baz`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:57:24
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn Sync = baz;
|
2021-07-31 10:08:56 -05:00
|
|
|
| --------- ^^^ expected trait `Sync`, found trait `Baz`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Sync`
|
|
|
|
found reference `&dyn Baz`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:60:25
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let bar: &dyn Bar = baz;
|
2021-07-31 10:08:56 -05:00
|
|
|
| -------- ^^^ expected trait `Bar`, found trait `Baz`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Bar`
|
|
|
|
found reference `&dyn Baz`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:62:35
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn std::fmt::Debug = bar;
|
2021-07-31 10:08:56 -05:00
|
|
|
| -------------------- ^^^ expected trait `Debug`, found trait `Bar`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Debug`
|
|
|
|
found reference `&dyn Bar`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:64:24
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn Send = bar;
|
2021-07-31 10:08:56 -05:00
|
|
|
| --------- ^^^ expected trait `Send`, found trait `Bar`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Send`
|
|
|
|
found reference `&dyn Bar`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:66:24
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn Sync = bar;
|
2021-07-31 10:08:56 -05:00
|
|
|
| --------- ^^^ expected trait `Sync`, found trait `Bar`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Sync`
|
|
|
|
found reference `&dyn Bar`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:69:25
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let foo: &dyn Foo = baz;
|
2021-07-31 10:08:56 -05:00
|
|
|
| -------- ^^^ expected trait `Foo`, found trait `Baz`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Foo`
|
|
|
|
found reference `&dyn Baz`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:71:35
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn std::fmt::Debug = foo;
|
2021-07-31 10:08:56 -05:00
|
|
|
| -------------------- ^^^ expected trait `Debug`, found trait `Foo`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Debug`
|
|
|
|
found reference `&dyn Foo`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:73:24
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn Send = foo;
|
2021-07-31 10:08:56 -05:00
|
|
|
| --------- ^^^ expected trait `Send`, found trait `Foo`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Send`
|
|
|
|
found reference `&dyn Foo`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:75:24
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn Sync = foo;
|
2021-07-31 10:08:56 -05:00
|
|
|
| --------- ^^^ expected trait `Sync`, found trait `Foo`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Sync`
|
|
|
|
found reference `&dyn Foo`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:78:25
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let foo: &dyn Foo = bar;
|
2021-07-31 10:08:56 -05:00
|
|
|
| -------- ^^^ expected trait `Foo`, found trait `Bar`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Foo`
|
|
|
|
found reference `&dyn Bar`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:80:35
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn std::fmt::Debug = foo;
|
2021-07-31 10:08:56 -05:00
|
|
|
| -------------------- ^^^ expected trait `Debug`, found trait `Foo`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Debug`
|
|
|
|
found reference `&dyn Foo`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:82:24
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn Send = foo;
|
2021-07-31 10:08:56 -05:00
|
|
|
| --------- ^^^ expected trait `Send`, found trait `Foo`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Send`
|
|
|
|
found reference `&dyn Foo`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
error[E0308]: mismatched types
|
2022-11-07 12:14:02 -06:00
|
|
|
--> $DIR/invalid-upcast.rs:84:24
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
|
LL | let _: &dyn Sync = foo;
|
2021-07-31 10:08:56 -05:00
|
|
|
| --------- ^^^ expected trait `Sync`, found trait `Foo`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
= note: expected reference `&dyn Sync`
|
|
|
|
found reference `&dyn Foo`
|
2019-11-04 20:18:39 -06:00
|
|
|
|
|
|
|
error: aborting due to 15 previous errors
|
|
|
|
|
2021-07-31 10:08:56 -05:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|