]> git.lizzy.rs Git - rust.git/blob - src/test/ui/newtype-temporary.rs
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / newtype-temporary.rs
1 // run-pass
2
3 #[derive(PartialEq, Debug)]
4 struct Foo(usize);
5
6 fn foo() -> Foo {
7     Foo(42)
8 }
9
10 pub fn main() {
11     assert_eq!(foo(), Foo(42));
12 }