mirror of https://github.com/rust-lang/rust
18 lines
327 B
Rust
18 lines
327 B
Rust
//@ check-pass
|
|
//@ revisions: current next
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
//@[next] compile-flags: -Znext-solver
|
|
|
|
#![feature(lazy_type_alias)]
|
|
//~^ WARN the feature `lazy_type_alias` is incomplete
|
|
|
|
use std::any::Any;
|
|
|
|
type Coerce = Box<dyn Any>;
|
|
|
|
fn test() -> Coerce {
|
|
Box::new(1)
|
|
}
|
|
|
|
fn main() {}
|