Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (27 sloc) 550 Bytes
// run-pass
// pretty-expanded FIXME #23616
#![feature(slice_patterns)]
fn f<T,>(_: T,) {}
struct Foo<T,>(T);
struct Bar;
impl Bar {
fn f(_: isize,) {}
fn g(self, _: isize,) {}
fn h(self,) {}
}
enum Baz {
Qux(isize,),
}
#[allow(unused,)]
pub fn main() {
f::<isize,>(0,);
let (_, _,) = (1, 1,);
let [_, _,] = [1, 1,];
let [_, _, .., _,] = [1, 1, 1, 1,];
let [_, _, _, ..,] = [1, 1, 1, 1,];
let x: Foo<isize,> = Foo::<isize,>(1);
Bar::f(0,);
Bar.g(0,);
Bar.h();
let x = Baz::Qux(1,);
}
You can’t perform that action at this time.