rust/tests/ui/impl-trait/issues/issue-70971.rs

5 lines
130 B
Rust
Raw Normal View History

fn main() {
let x : (impl Copy,) = (true,);
2022-02-17 21:18:42 -06:00
//~^ `impl Trait` only allowed in function and inherent method return types
}