]> git.lizzy.rs Git - rust.git/blob - src/test/ui/newtype-temporary.rs
Rollup merge of #84328 - Folyd:stablize_map_into_keys_values, r=m-ou-se
[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 }