about summary refs log tree commit diff
path: root/tests/ui/inline-const/const-expr-generic-err2.stderr
blob: c6d77593c46ffe3f786230f99e2d292ea6d0d866 (plain)
1
2
3
4
5
6
7
8
9
10
error: constant expression depends on a generic parameter
  --> $DIR/const-expr-generic-err2.rs:2:19
   |
LL |     let _ = [0u8; const { std::mem::size_of::<T>() }];
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this may fail depending on what value the parameter takes

error: aborting due to 1 previous error