summary refs log tree commit diff
path: root/src/test/ui/impl-trait/where-allowed-2.rs
blob: f7744ef1b3eaeb0da606b0e3625755b39090bca1 (plain)
1
2
3
4
5
6
7
8
9
//! Ideally, these tests would go in `where-allowed.rs`, but we bail out
//! too early to display them.
use std::fmt::Debug;

// Disallowed
fn in_adt_in_return() -> Vec<impl Debug> { panic!() }
//~^ ERROR opaque type expands to a recursive type

fn main() {}