rustc/tests/ui/dyn-star/error.rs
2025-02-17 11:14:05 +01:00

14 lines
229 B
Rust

#![feature(dyn_star)]
#![allow(incomplete_features)]
use std::fmt::Debug;
trait Foo {}
fn make_dyn_star() {
let i = 42usize;
let dyn_i: dyn* Foo = i; //~ ERROR trait bound `usize: Foo` is not satisfied
}
fn main() {}