blob: 3ea73abb03f9f0b9a35bf94e9f61855ed87a12c5 [file] [log] [blame]
//! Show that `defines(StructName)` works for
//! fields of that struct being an opaque type.
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]
//@ check-pass
use std::fmt::Debug;
type Foo = impl Debug;
struct Bar {
foo: Foo,
}
#[define_opaque(Bar)]
fn bar() -> Bar {
Bar { foo: "foo" }
}
fn main() {}