1 2 3 4 5 6 7
struct S; fn repro_ref(thing: S) { thing(); //~ ERROR expected function, found `S` } fn main() {}