]> git.proxmox.com Git - rustc.git/blob - src/test/ui/impl-trait/where-allowed-2.rs
New upstream version 1.41.1+dfsg1
[rustc.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!() }
7 //~^ ERROR opaque type expands to a recursive type
8
9 fn main() {}