summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/assert.rs
blob: a314db907b8a24afcbe4f1f110687b6be3b0ed57 (plain)
1
2
3
4
5
6
7
8
9
// revisions: with-generic-asset without-generic-asset
// [with-generic-asset] compile-flags: --cfg feature="generic_assert"

fn main() {
    assert!();  //~ ERROR requires a boolean expression
    assert!(struct); //~ ERROR expected expression
    debug_assert!(); //~ ERROR requires a boolean expression
    debug_assert!(struct); //~ ERROR expected expression
}