about summary refs log tree commit diff
path: root/tests/ui/macros/assert.rs
blob: 4a8ea816747a6769ea459a4c1129f7ac374067a8 (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
}