We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c9f7dc commit 055e7b7Copy full SHA for 055e7b7
src/test/ui/issues/issue-55587.rs
@@ -0,0 +1,5 @@
1
+use std::path::Path;
2
+
3
+fn main() {
4
+ let Path::new(); //~ ERROR expected tuple struct/variant
5
+}
src/test/ui/issues/issue-55587.stderr
@@ -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
6
7
+error: aborting due to previous error
8
9
+For more information about this error, try `rustc --explain E0164`.
0 commit comments