diff options
Diffstat (limited to 'src/test/ui/typeck/struct-enum-wrong-args.rs')
-rw-r--r-- | src/test/ui/typeck/struct-enum-wrong-args.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/typeck/struct-enum-wrong-args.rs b/src/test/ui/typeck/struct-enum-wrong-args.rs deleted file mode 100644 index 19de4d677..000000000 --- a/src/test/ui/typeck/struct-enum-wrong-args.rs +++ /dev/null @@ -1,14 +0,0 @@ -// Regression test of #86481. -struct Wrapper(i32); -struct DoubleWrapper(i32, i32); - -fn main() { - let _ = Some(3, 2); //~ ERROR this enum variant takes - let _ = Ok(3, 6, 2); //~ ERROR this enum variant takes - let _ = Ok(); //~ ERROR this enum variant takes - let _ = Wrapper(); //~ ERROR this struct takes - let _ = Wrapper(5, 2); //~ ERROR this struct takes - let _ = DoubleWrapper(); //~ ERROR this struct takes - let _ = DoubleWrapper(5); //~ ERROR this struct takes - let _ = DoubleWrapper(5, 2, 7); //~ ERROR this struct takes -} |