error[E0412]: cannot find type `T` in this scope --> $DIR/projection-error.rs:13:17 | LL | pub trait Tr { | --------------- similarly named trait `Tr` defined here ... LL | fn mk_array(_x: T) -> [(); >::SIZE] {} | ^ | help: a trait with a similar name exists | LL | fn mk_array(_x: Tr) -> [(); >::SIZE] {} | + help: you might be missing a type parameter | LL | fn mk_array(_x: T) -> [(); >::SIZE] {} | +++ error[E0412]: cannot find type `T` in this scope --> $DIR/projection-error.rs:13:29 | LL | pub trait Tr { | --------------- similarly named trait `Tr` defined here ... LL | fn mk_array(_x: T) -> [(); >::SIZE] {} | ^ | help: a trait with a similar name exists | LL | fn mk_array(_x: T) -> [(); >::SIZE] {} | + help: you might be missing a type parameter | LL | fn mk_array(_x: T) -> [(); >::SIZE] {} | +++ error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0412`.