14 lines
271 B
Rust
14 lines
271 B
Rust
|
|
#![feature(contracts)]
|
||
|
|
#![allow(incomplete_features)]
|
||
|
|
|
||
|
|
struct T;
|
||
|
|
|
||
|
|
impl T {
|
||
|
|
#[core::contracts::ensures] //~ ERROR expected a `Fn(&_)` closure, found `()`
|
||
|
|
fn b() {(loop)}
|
||
|
|
//~^ ERROR expected `{`, found `)`
|
||
|
|
//~| ERROR expected `{`, found `)`
|
||
|
|
}
|
||
|
|
|
||
|
|
fn main() {}
|