blob: e6e95771400d302f31be971363c97d7f3064b0ad (
plain)
1
2
3
4
5
6
7
8
|
static x: impl Fn(&str) -> Result<&str, ()> = move |source| {
//~^ `impl Trait` only allowed in function and inherent method return types
let res = (move |source| Ok(source))(source);
let res = res.or((move |source| Ok(source))(source));
res
};
fn main() {}
|