rust/tests/ui/parser/deli-ident-issue-1.rs

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

23 lines
455 B
Rust
Raw Normal View History

2023-01-25 20:52:57 -06:00
#![feature(let_chains)]
trait Demo {}
impl dyn Demo {
pub fn report(&self) -> u32 {
let sum = |a: u32,
b: u32,
c: u32| {
a + b + c
};
sum(1, 2, 3)
}
fn check(&self, val: Option<u32>, num: Option<u32>) {
if let Some(b) = val
&& let Some(c) = num {
&& b == c {
}
}
}
fn main() { } //~ ERROR this file contains an unclosed delimiter