Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add a regression test
  • Loading branch information
oli-obk committed Jun 9, 2026
commit e069f47a7a27bcf856bf944190623281ff7b575d
10 changes: 10 additions & 0 deletions tests/ui/reflection/reflection_methods_in_runtime_code.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//@run-fail

#![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>();
}