]> git.proxmox.com Git - rustc.git/blob - tests/ui/rfc-1937-termination-trait/termination-trait-test-wrong-type.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / rfc-1937-termination-trait / termination-trait-test-wrong-type.stderr
1 error[E0277]: the trait bound `f32: Termination` is not satisfied
2 --> $DIR/termination-trait-test-wrong-type.rs:6:31
3 |
4 LL | #[test]
5 | ------- in this procedural macro expansion
6 LL | fn can_parse_zero_as_f32() -> Result<f32, ParseFloatError> {
7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Termination` is not implemented for `f32`
8 |
9 = note: required for `Result<f32, ParseFloatError>` to implement `Termination`
10 note: required by a bound in `assert_test_result`
11 --> $SRC_DIR/test/src/lib.rs:LL:COL
12 = note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.