]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-typeid-of.rs
Rollup merge of #72279 - RalfJung:raw-ref-macros, r=nikomatsakis
[rust.git] / src / test / ui / consts / const-typeid-of.rs
1 use std::any::TypeId;
2
3 struct A;
4
5 fn main() {
6     const A_ID: TypeId = TypeId::of::<A>();
7     //~^ ERROR `std::any::TypeId::of` is not yet stable as a const fn
8 }