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
#![crate_type = "lib"]#![feature(associated_types, lang_items)]#![no_std]#[lang = "sized"]traitSized{}#[lang = "not"]traitNot{typeResult;fnnot(self) -> Self::Result;}traitInt:Not<Result=Self>{fncount_ones(self) -> uint;fncount_zeros(self) -> uint{// neither works(!self).count_ones()//~^ error: type `<Self as Not>::Result` does not implement any method in scope named `count_ones`//self.not().count_ones()}}
STR
Example from libcore:
Version
84f5ad8
cc @nikomatsakis
The text was updated successfully, but these errors were encountered: