From 7834c2284801766f9925576e8f4d05d7cb7b23dd Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Thu, 30 Aug 2018 13:16:59 +0200 Subject: Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`. --- .../ui/run-pass/structs-enums/tuple-struct-construct.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/test/ui/run-pass/structs-enums/tuple-struct-construct.rs (limited to 'src/test/ui/run-pass/structs-enums/tuple-struct-construct.rs') diff --git a/src/test/ui/run-pass/structs-enums/tuple-struct-construct.rs b/src/test/ui/run-pass/structs-enums/tuple-struct-construct.rs new file mode 100644 index 00000000000..c40adf2260d --- /dev/null +++ b/src/test/ui/run-pass/structs-enums/tuple-struct-construct.rs @@ -0,0 +1,17 @@ +// Copyright 2012 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#[derive(Debug)] +struct Foo(isize, isize); + +pub fn main() { + let x = Foo(1, 2); + println!("{:?}", x); +} -- cgit 1.4.1-3-g733a5