rename RPITIT from opaque to synthetic
This commit is contained in:
parent
b6e4299415
commit
1feef44daf
7 changed files with 14 additions and 11 deletions
|
@ -1,10 +1,10 @@
|
|||
error[E0310]: the associated type `<Self as MyTrait>::{opaque#0}` may not live long enough
|
||||
error[E0310]: the associated type `<Self as MyTrait>::{synthetic#0}` may not live long enough
|
||||
--> $DIR/async-and-ret-ref.rs:7:5
|
||||
|
|
||||
LL | async fn foo() -> &'static impl T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| |
|
||||
| the associated type `<Self as MyTrait>::{opaque#0}` must be valid for the static lifetime...
|
||||
| the associated type `<Self as MyTrait>::{synthetic#0}` must be valid for the static lifetime...
|
||||
| ...so that the reference type `&'static impl T` does not outlive the data it points at
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
|
|
@ -6,11 +6,11 @@ LL | fn bar() -> () {}
|
|||
|
|
||||
= help: the trait `std::fmt::Display` is not implemented for `()`
|
||||
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
|
||||
note: required by a bound in `Foo::{opaque#0}`
|
||||
note: required by a bound in `Foo::{synthetic#0}`
|
||||
--> $DIR/doesnt-satisfy.rs:2:22
|
||||
|
|
||||
LL | fn bar() -> impl std::fmt::Display;
|
||||
| ^^^^^^^^^^^^^^^^^ required by this bound in `Foo::{opaque#0}`
|
||||
| ^^^^^^^^^^^^^^^^^ required by this bound in `Foo::{synthetic#0}`
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
error[E0310]: the associated type `<T as Original>::{opaque#0}` may not live long enough
|
||||
error[E0310]: the associated type `<T as Original>::{synthetic#0}` may not live long enough
|
||||
--> $DIR/missing-static-bound-from-impl.rs:11:9
|
||||
|
|
||||
LL | Box::new(<T as Original>::f())
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| |
|
||||
| the associated type `<T as Original>::{opaque#0}` must be valid for the static lifetime...
|
||||
| the associated type `<T as Original>::{synthetic#0}` must be valid for the static lifetime...
|
||||
| ...so that the type `impl Fn()` will meet its required lifetime bounds
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
|
|
@ -5,11 +5,11 @@ LL | fn foo<F2: Foo<u8>>(self) -> impl Foo<u8> {
|
|||
| ^^^^^^^^^^^^ the trait `Foo<char>` is not implemented for `impl Foo<u8>`
|
||||
|
|
||||
= help: the trait `Foo<char>` is implemented for `Bar`
|
||||
note: required by a bound in `Foo::{opaque#0}`
|
||||
note: required by a bound in `Foo::{synthetic#0}`
|
||||
--> $DIR/return-dont-satisfy-bounds.rs:2:30
|
||||
|
|
||||
LL | fn foo<F2>(self) -> impl Foo<T>;
|
||||
| ^^^^^^ required by this bound in `Foo::{opaque#0}`
|
||||
| ^^^^^^ required by this bound in `Foo::{synthetic#0}`
|
||||
|
||||
error[E0276]: impl has stricter requirements than trait
|
||||
--> $DIR/return-dont-satisfy-bounds.rs:8:16
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue