blob: 3c7c990d4e27c1f002053f0a25a3cfc6080a9701 (
plain)
1
2
3
4
5
6
7
|
// Regression test for #91450.
// This test ensures that the compiler does not suggest `Foo<[type error]>` in diagnostic messages.
fn foo() -> Option<_> {} //~ ERROR: [E0308]
//~^ ERROR: the placeholder `_` is not allowed
fn main() {}
|