]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/where-allowed-2.rs
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
[rust.git] / src / test / ui / impl-trait / where-allowed-2.rs
1 //! Ideally, these tests would go in `where-allowed.rs`, but we bail out
2 //! too early to display them.
3 use std::fmt::Debug;
4
5 // Disallowed
6 fn in_adt_in_return() -> Vec<impl Debug> { panic!() } //~ ERROR cannot resolve opaque type
7
8 fn main() {}