diff options
| author | memoryruins <memoryruinsmusic@gmail.com> | 2018-10-12 12:42:33 -0400 |
|---|---|---|
| committer | memoryruins <memoryruinsmusic@gmail.com> | 2018-10-12 12:42:33 -0400 |
| commit | 146fbc6a96b50a4eccd13b8908f36d7ce2f6af9f (patch) | |
| tree | 22a01cd6e165cb2f1774fa5629e8f54a07527a8b /src | |
| parent | e9e27e6a6258b3adf00a5dd35d2676656224880d (diff) | |
| download | rust-146fbc6a96b50a4eccd13b8908f36d7ce2f6af9f.tar.gz rust-146fbc6a96b50a4eccd13b8908f36d7ce2f6af9f.zip | |
Add test for issue #54966
Closes #54966
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/issues/issue-54966.rs | 6 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-54966.stderr | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-54966.rs b/src/test/ui/issues/issue-54966.rs new file mode 100644 index 00000000000..0ed3c4b3ca9 --- /dev/null +++ b/src/test/ui/issues/issue-54966.rs @@ -0,0 +1,6 @@ +// issue-54966: ICE returning an unknown type with impl FnMut + +fn generate_duration() -> Oper<impl FnMut()> {} +//~^ ERROR cannot find type `Oper` in this scope + +fn main() {} diff --git a/src/test/ui/issues/issue-54966.stderr b/src/test/ui/issues/issue-54966.stderr new file mode 100644 index 00000000000..aa9a61cb592 --- /dev/null +++ b/src/test/ui/issues/issue-54966.stderr @@ -0,0 +1,9 @@ +error[E0412]: cannot find type `Oper` in this scope + --> $DIR/issue-54966.rs:3:27 + | +LL | fn generate_duration() -> Oper<impl FnMut()> {} + | ^^^^ not found in this scope + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0412`. |
