]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-91450-inner-ty-error.rs
Rollup merge of #100984 - ChrisDenton:reinstate-init, r=Mark-Simulacrum
[rust.git] / src / test / 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() {}