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 19:02:03 +00:00
#![feature(dyn_star)]
2022-08-30 19:44:00 +00:00
#![allow(incomplete_features)]
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
}
fn main() {}