//@ aux-build:const_evaluatable_lib.rs //@ run-pass #![feature(generic_const_exprs)] #![allow(incomplete_features)] extern crate const_evaluatable_lib; fn user() where [u8; std::mem::size_of::() - 1]: Sized { assert_eq!(const_evaluatable_lib::test1::(), [0; std::mem::size_of::() - 1]); } fn main() { assert_eq!(const_evaluatable_lib::test1::(), [0; 3]); user::(); user::(); }