Skip to content

Commit

Permalink
add test for issue rust-lang#55587
Browse files Browse the repository at this point in the history
  • Loading branch information
euclio committed Nov 14, 2018
1 parent 5c9f7dc commit 055e7b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/ui/issues/issue-55587.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use std::path::Path;

fn main() {
let Path::new(); //~ ERROR expected tuple struct/variant
}
9 changes: 9 additions & 0 deletions src/test/ui/issues/issue-55587.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0164]: expected tuple struct/variant, found method `<Path>::new`
--> $DIR/issue-55587.rs:4:9
|
LL | let Path::new(); //~ ERROR expected tuple struct/variant
| ^^^^^^^^^^^ not a tuple variant or struct

error: aborting due to previous error

For more information about this error, try `rustc --explain E0164`.

0 comments on commit 055e7b7

Please sign in to comment.