diff options
Diffstat (limited to 'src/test/ui/const-generics/generic_const_exprs/associated-const.rs')
| -rw-r--r-- | src/test/ui/const-generics/generic_const_exprs/associated-const.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/const-generics/generic_const_exprs/associated-const.rs b/src/test/ui/const-generics/generic_const_exprs/associated-const.rs deleted file mode 100644 index a6777632254..00000000000 --- a/src/test/ui/const-generics/generic_const_exprs/associated-const.rs +++ /dev/null @@ -1,11 +0,0 @@ -// check-pass -struct Foo<T>(T); -impl<T> Foo<T> { - const VALUE: usize = std::mem::size_of::<T>(); -} - -fn test<T>() { - let _ = [0; Foo::<u8>::VALUE]; -} - -fn main() {} |
