add test for issue #55587
This commit is contained in:
parent
5c9f7dcd83
commit
055e7b7258
2 changed files with 14 additions and 0 deletions
5
src/test/ui/issues/issue-55587.rs
Normal file
5
src/test/ui/issues/issue-55587.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
use std::path::Path;
|
||||
|
||||
fn main() {
|
||||
let Path::new(); //~ ERROR expected tuple struct/variant
|
||||
}
|
9
src/test/ui/issues/issue-55587.stderr
Normal file
9
src/test/ui/issues/issue-55587.stderr
Normal 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`.
|
Loading…
Reference in a new issue