rust/src/test/ui/impl-trait/issues/issue-70971.rs

5 lines
137 B
Rust
Raw Normal View History

fn main() {
let x : (impl Copy,) = (true,);
//~^ `impl Trait` not allowed outside of function and inherent method return types
}