add test for issue #55587

This commit is contained in:
Andy Russell 2018-11-14 12:41:39 -05:00
parent 5c9f7dcd83
commit 055e7b7258
No known key found for this signature in database
GPG key ID: BE2221033EDBC374
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,5 @@
use std::path::Path;
fn main() {
let Path::new(); //~ ERROR expected tuple struct/variant
}

View file

@ -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`.