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

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

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
}