]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/defaults/trait_objects_fail.rs
1 trait Trait
<const N
: u8 = 12> {
7 impl Trait
<2> for u32 {}
9 fn foo(arg
: &dyn Trait
) -> u8 {
13 trait Traitor
<const N
: u8 = 1, const M
: u8 = N
> {
19 impl Traitor
<2, 3> for bool { }
21 fn bar
<const N
: u8>(arg
: &dyn Traitor
<N
>) -> u8 {
27 //~^ error: the trait bound `u32: Trait` is not satisfied
29 //~^ error: the trait bound `bool: Traitor<{_: u8}>` is not satisfied