rust/tests/ui/rfcs/rfc-2632-const-trait-impl/std-impl-gate.stock.stderr

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

13 lines
491 B
Plaintext
Raw Normal View History

2021-12-09 11:10:05 -06:00
error[E0015]: cannot call non-const fn `<Vec<usize> as Default>::default` in constant functions
2021-08-16 10:55:35 -05:00
--> $DIR/std-impl-gate.rs:13:5
|
LL | Default::default()
| ^^^^^^^^^^^^^^^^^^
2021-12-09 11:10:05 -06:00
|
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2022-12-22 12:15:15 -06:00
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
2021-08-16 10:55:35 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0015`.