]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-generic-type_name.rs
Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup
[rust.git] / src / test / ui / const-generics / const-generic-type_name.rs
1 // run-pass
2 // revisions: full min
3
4 #![cfg_attr(full, feature(const_generics))]
5 #![cfg_attr(full, allow(incomplete_features))]
6
7 #[derive(Debug)]
8 struct S<const N: usize>;
9
10 fn main() {
11     assert_eq!(std::any::type_name::<S<3>>(), "const_generic_type_name::S<3>");
12 }