]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-86820.rs
1 // Regression test for the ICE described in #86820.
3 #![allow(unused, dead_code)]
6 const C
: fn() = || is_set();
12 fn bit
<const I
: u8>(self) -> bool
;
16 fn bit
<const I
: usize>(self) -> bool
{
17 //~^ ERROR: method `bit` has an incompatible generic parameter for trait `Bits` [E0053]
19 let mask
= u8::from(i
);