rust/tests/ui/dyn-star/error.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
228 B
Rust
Raw Normal View History

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