You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the above program. I've specified that the Bar trait has a numeric generic parameter which is of the type u1. I'm then allowed to implement this trait using a Field of value 8. This then allows me to have Foo::bar() return a [u8; 8] whereas reading the trait definition this should not be allowed.
The text was updated successfully, but these errors were encountered:
Consider the above program. I've specified that the
Bar
trait has a numeric generic parameter which is of the typeu1
. I'm then allowed to implement this trait using aField
of value 8. This then allows me to haveFoo::bar()
return a[u8; 8]
whereas reading the trait definition this should not be allowed.The text was updated successfully, but these errors were encountered: