Skip to content

Commit 055e7b7

Browse files
committed
add test for issue #55587
1 parent 5c9f7dc commit 055e7b7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: src/test/ui/issues/issue-55587.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use std::path::Path;
2+
3+
fn main() {
4+
let Path::new(); //~ ERROR expected tuple struct/variant
5+
}

Diff for: src/test/ui/issues/issue-55587.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0164]: expected tuple struct/variant, found method `<Path>::new`
2+
--> $DIR/issue-55587.rs:4:9
3+
|
4+
LL | let Path::new(); //~ ERROR expected tuple struct/variant
5+
| ^^^^^^^^^^^ not a tuple variant or struct
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0164`.

0 commit comments

Comments
 (0)