]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-typeid-of.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[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 }