diff options
Diffstat (limited to 'tests/ui/consts/missing-larger-array-impl.rs')
-rw-r--r-- | tests/ui/consts/missing-larger-array-impl.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/consts/missing-larger-array-impl.rs b/tests/ui/consts/missing-larger-array-impl.rs new file mode 100644 index 000000000..e6c879c8e --- /dev/null +++ b/tests/ui/consts/missing-larger-array-impl.rs @@ -0,0 +1,9 @@ +struct X; + +// Make sure that we show the impl trait refs in the help message with +// their evaluated constants, rather than `core::::array::{impl#30}::{constant#0}` + +fn main() { + <[X; 35] as Default>::default(); + //~^ ERROR the trait bound `[X; 35]: Default` is not satisfied +} |