2 #![allow(unused_variables)]
3 // Parsing patterns with paths with type parameters (issue #22544)
5 use std::default::Default;
8 pub struct Foo<T>(T, T);
10 impl<T: ::std::fmt::Display> Foo<T> {
13 Foo::<T>(ref x, ref y) => println!("Goodbye, World! {} {}", x, y)
22 impl<T> Tr for Foo<T> {
31 let Foo::<i32>(a, b) = Default::default();
36 let w = Wrapper { value: Foo(10u8, 11u8) };
38 Wrapper::<Foo<u8>> { value: Foo(10, 11) } => {},
39 ::Wrapper::<<Foo<_> as Tr>::U> { value: Foo::<u8>(11, 16) } => { panic!() },
43 if let None::<u8> = Some(8) {
46 if let None::<u8> { .. } = Some(8) {
49 if let Option::None::<u8> { .. } = Some(8) {