rust/tests/ui/macros/assert.without-generic-asse...

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

29 lines
813 B
Plaintext
Raw Normal View History

error: macro requires a boolean expression as an argument
--> $DIR/assert.rs:5:5
|
2019-03-09 20:03:44 +08:00
LL | assert!();
2021-10-15 02:28:28 +08:00
| ^^^^^^^^^ boolean expression required
error: expected expression, found keyword `struct`
--> $DIR/assert.rs:6:13
|
2019-03-09 20:03:44 +08:00
LL | assert!(struct);
| ^^^^^^ expected expression
error: macro requires a boolean expression as an argument
--> $DIR/assert.rs:7:5
|
2019-03-09 20:03:44 +08:00
LL | debug_assert!();
2021-10-15 02:28:28 +08:00
| ^^^^^^^^^^^^^^^ boolean expression required
|
= note: this error originates in the macro `debug_assert` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected expression, found keyword `struct`
--> $DIR/assert.rs:8:19
|
2019-03-09 20:03:44 +08:00
LL | debug_assert!(struct);
| ^^^^^^ expected expression
error: aborting due to 4 previous errors