Navigation Menu

Skip to content

Commit

Permalink
Catch more ICEs
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Feb 2, 2020
1 parent 9d8058f commit ae22bf9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/type-alias-impl-trait/issue-63279.rs
@@ -1,3 +1,5 @@
// compile-flags: -Zsave-analysis

#![feature(type_alias_impl_trait)]

type Closure = impl FnOnce(); //~ ERROR: type mismatch resolving
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/type-alias-impl-trait/issue-63279.stderr
@@ -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 `()`
Expand Down
@@ -1,3 +1,4 @@
// compile-flags: -Zsave-analysis
// check-pass

#![feature(type_alias_impl_trait)]
Expand Down

0 comments on commit ae22bf9

Please sign in to comment.