]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2632-const-trait-impl/issue-79450.stderr
Rollup merge of #106716 - c410-f3r:rfc-2397-1, r=davidtwco
[rust.git] / tests / ui / rfc-2632-const-trait-impl / issue-79450.stderr
1 error[E0015]: cannot call non-const fn `_print` in constant functions
2   --> $DIR/issue-79450.rs:9:9
3    |
4 LL |         println!("lul");
5    |         ^^^^^^^^^^^^^^^
6    |
7    = note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
8    = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0015`.