error[E0308]: mismatched types --> $DIR/different-fn.rs:10:5 | LL | [0; size_of::>()] | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `size_of::()`, found `size_of::>()` | = note: expected constant `size_of::()` found constant `size_of::>()` error: unconstrained generic constant --> $DIR/different-fn.rs:10:9 | LL | [0; size_of::>()] | ^^^^^^^^^^^^^^^^^^^ | help: try adding a `where` bound | LL | fn test() -> [u8; size_of::()] where [(); size_of::>()]: { | ++++++++++++++++++++++++++++++++ error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0308`.