Don't try and handle unfed type_of
on anon consts
This commit is contained in:
parent
c44b3d50fe
commit
ec036cda3f
6 changed files with 14 additions and 270 deletions
|
@ -3,8 +3,6 @@
|
|||
trait X {
|
||||
fn test() -> Self::Assoc<{ async {} }>;
|
||||
//~^ ERROR associated type `Assoc` not found for `Self`
|
||||
//~| ERROR associated type `Assoc` not found for `Self`
|
||||
|
||||
}
|
||||
|
||||
pub fn main() {}
|
||||
|
|
|
@ -4,14 +4,6 @@ error[E0220]: associated type `Assoc` not found for `Self`
|
|||
LL | fn test() -> Self::Assoc<{ async {} }>;
|
||||
| ^^^^^ associated type `Assoc` not found
|
||||
|
||||
error[E0220]: associated type `Assoc` not found for `Self`
|
||||
--> $DIR/coroutine-in-orphaned-anon-const.rs:4:24
|
||||
|
|
||||
LL | fn test() -> Self::Assoc<{ async {} }>;
|
||||
| ^^^^^ associated type `Assoc` not found
|
||||
|
|
||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0220`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue