Catch more ICEs
This commit is contained in:
parent
9d8058fb42
commit
ae22bf9d42
3 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
// compile-flags: -Zsave-analysis
|
||||
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
type Closure = impl FnOnce(); //~ ERROR: type mismatch resolving
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0271]: type mismatch resolving `<[closure@$DIR/issue-63279.rs:6:5: 6:28] as std::ops::FnOnce<()>>::Output == ()`
|
||||
--> $DIR/issue-63279.rs:3:1
|
||||
error[E0271]: type mismatch resolving `<[closure@$DIR/issue-63279.rs:8:5: 8:28] as std::ops::FnOnce<()>>::Output == ()`
|
||||
--> $DIR/issue-63279.rs:5:1
|
||||
|
|
||||
LL | type Closure = impl FnOnce();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected opaque type, found `()`
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// compile-flags: -Zsave-analysis
|
||||
// check-pass
|
||||
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue