rust/tests/ui/async-await/issues/issue-95307.rs
Oli Scherer c51f05be30 Report infer ty errors during hir ty lowering
This centralizes the placeholder type error reporting in one location, but it also exposes the granularity at which we convert things from hir to ty more. E.g. previously infer types in where bounds were errored together with the function signature, but now they are independent.
2025-06-27 07:51:38 +00:00

15 lines
599 B
Rust

//@ edition:2018
// Regression test for #95307.
// The ICE occurred on all the editions, specifying edition:2018 to reduce diagnostics.
pub trait C {
async fn new() -> [u8; _];
//~^ ERROR: the placeholder `_` is not allowed within types on item signatures for opaque types
//~| ERROR: the placeholder `_` is not allowed within types on item signatures for opaque types
//~| ERROR: the placeholder `_` is not allowed within types on item signatures for opaque types
//~| ERROR: the placeholder `_` is not allowed within types on item signatures for opaque types
}
fn main() {}