blob: 0f1fcd1768e2738920c9604362d3f94a46dbea56 [file]
#![feature(type_info)]
trait Trait {}
fn main() {
// Test the (lack of) usability of comptime fns in runtime code.
std::any::TypeId::of::<[u8; usize::MAX]>().trait_info_of::<dyn Trait>();
//~^ ERROR: comptime functions can only be called at compile time
}