blob: 7a574b34304cb5225cea9cf53accb3e03e96be28 [file] [log] [blame]
warning: skipping const checks
--> $DIR/non_const_fn.rs:8:15
|
LL | const C: () = foo();
| ^^^^^
warning: any use of this value will cause an error
--> $DIR/non_const_fn.rs:8:15
|
LL | const C: () = foo();
| --------------^^^^^-
| |
| calling non-const function `foo`
|
note: lint level defined here
--> $DIR/non_const_fn.rs:2:9
|
LL | #![warn(const_err)]
| ^^^^^^^^^
error[E0080]: evaluation of constant expression failed
--> $DIR/non_const_fn.rs:12:22
|
LL | println!("{:?}", C);
| ^ referenced constant has errors
error: aborting due to previous error
For more information about this error, try `rustc --explain E0080`.