Files
rust/tests/ui/macros/ice-in-tokenstream-for-contracts-issue-140683.rs

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

14 lines
271 B
Rust
Raw Normal View History

#![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() {}