2022-08-29 12:02:03 -07:00
|
|
|
#![feature(dyn_star)]
|
2022-08-30 12:44:00 -07:00
|
|
|
#![allow(incomplete_features)]
|
2022-04-13 16:38:16 -07:00
|
|
|
|
|
|
|
use std::fmt::Debug;
|
|
|
|
|
|
|
|
trait Foo {}
|
|
|
|
|
|
|
|
fn make_dyn_star() {
|
|
|
|
let i = 42;
|
2022-09-14 23:20:03 +00:00
|
|
|
let dyn_i: dyn* Foo = i; //~ ERROR trait bound `{integer}: Foo` is not satisfied
|
2022-04-13 16:38:16 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|