mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
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() {}
|