fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: functions used as tests can not have any arguments 2 --> $DIR/test-function-signature.rs:14:1 3 | 4LL | fn baz(val: i32) {} 5 | ^^^^^^^^^^^^^^^^^^^ 6 7error: functions used as tests can not have any non-lifetime generic parameters 8 --> $DIR/test-function-signature.rs:22:1 9 | 10LL | fn type_generic<T>() {} 11 | ^^^^^^^^^^^^^^^^^^^^^^^ 12 13error: functions used as tests can not have any non-lifetime generic parameters 14 --> $DIR/test-function-signature.rs:25:1 15 | 16LL | fn const_generic<const N: usize>() {} 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18 19error: functions used as tests can not have any arguments 20 --> $DIR/test-function-signature.rs:30:5 21 | 22LL | fn foo(arg: ()) {} 23 | ^^^^^^^^^^^^^^^^^^ 24 25error[E0277]: the trait bound `i32: Termination` is not satisfied 26 --> $DIR/test-function-signature.rs:9:13 27 | 28LL | #[test] 29 | ------- in this procedural macro expansion 30LL | fn bar() -> i32 { 31 | ^^^ the trait `Termination` is not implemented for `i32` 32 | 33note: required by a bound in `assert_test_result` 34 --> $SRC_DIR/test/src/lib.rs:LL:COL 35 = note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) 36 37error: aborting due to 5 previous errors 38 39For more information about this error, try `rustc --explain E0277`.