summaryrefslogtreecommitdiffstats
path: root/src/test/ui/dyn-star/no-explicit-dyn-star.rs
blob: 4f726b7c6a69f815ebc7c8e0e19a08995896de2b (plain)
1
2
3
4
5
6
7
8
// 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
}