rust/tests/ui/impl-trait/where-allowed-2.rs

7 lines
125 B
Rust
Raw Normal View History

use std::fmt::Debug;
fn in_adt_in_return() -> Vec<impl Debug> { panic!() }
//~^ ERROR type annotations needed
fn main() {}