]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-91450-inner-ty-error.rs
Rollup merge of #106788 - estebank:elaborate_pred_E0599, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-91450-inner-ty-error.rs
1 // Regression test for #91450.
2 // This test ensures that the compiler does not suggest `Foo<[type error]>` in diagnostic messages.
3
4 fn foo() -> Option<_> {} //~ ERROR: [E0308]
5 //~^ ERROR: the placeholder `_` is not allowed
6
7 fn main() {}