mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
9 lines
212 B
Rust
9 lines
212 B
Rust
//@ aux-build:dyn-star-foreign.rs
|
|
|
|
extern crate dyn_star_foreign;
|
|
|
|
fn main() {
|
|
dyn_star_foreign::require_dyn_star_display(1usize as _);
|
|
//~^ ERROR casting `usize` as `dyn* std::fmt::Display` is invalid
|
|
}
|