Files
rust/tests/ui/traits/const-traits/std-impl-gate.stock.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
429 B
Plaintext
Raw Normal View History

2024-12-23 21:49:48 +00:00
error[E0015]: cannot call non-const associated function `<Vec<usize> as Default>::default` in constant functions
2021-08-16 15:55:35 +00:00
--> $DIR/std-impl-gate.rs:13:5
|
LL | Default::default()
| ^^^^^^^^^^^^^^^^^^
2021-12-10 01:10:05 +08:00
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2021-08-16 15:55:35 +00:00
error: aborting due to 1 previous error
2021-08-16 15:55:35 +00:00
For more information about this error, try `rustc --explain E0015`.