X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Ftype-alias-impl-trait%2Fissue-60564.rs;h=c2f4c37080746f3ef2437046074e3434ecbc38e4;hb=d667105681726fe84ef6256b8a75b2e770bed3e6;hp=4fc7679311a2e55b031dd0cf0c460c979476212b;hpb=b22c152958eade17a71d899b29a2d39bcc77aa48;p=rust.git diff --git a/tests/ui/type-alias-impl-trait/issue-60564.rs b/tests/ui/type-alias-impl-trait/issue-60564.rs index 4fc7679311a..c2f4c370807 100644 --- a/tests/ui/type-alias-impl-trait/issue-60564.rs +++ b/tests/ui/type-alias-impl-trait/issue-60564.rs @@ -18,7 +18,7 @@ impl IterBits for T type BitsIter = IterBitsIter; fn iter_bits(self, n: u8) -> Self::BitsIter { (0u8..n).rev().map(move |shift| ((self >> T::from(shift)) & T::from(1)).try_into().unwrap()) - //~^ ERROR non-defining opaque type use in defining scope + //~^ ERROR expected generic type parameter, found `u8` } }