1
Fork 0

Don't try and handle unfed type_of on anon consts

This commit is contained in:
Boxy 2024-11-30 19:31:06 +00:00
parent c44b3d50fe
commit ec036cda3f
6 changed files with 14 additions and 270 deletions

View file

@ -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() {}

View file

@ -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`.