File tree Expand file tree Collapse file tree 5 files changed +56
-0
lines changed Expand file tree Collapse file tree 5 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ //@ known-bug: #135122
2+ trait Add {
3+ type Output ;
4+ fn add ( _: ( ) , _: Self :: Output ) { }
5+ }
6+
7+ trait IsSame < Lhs > {
8+ type Assoc ;
9+ }
10+
11+ trait Data {
12+ type Elem ;
13+ }
14+
15+ impl < B > IsSame < i16 > for f32 where f32 : IsSame < B , Assoc = B > { }
16+
17+ impl < A > Add for i64
18+ where
19+ f32 : IsSame < A > ,
20+ i8 : Data < Elem = A > ,
21+ {
22+ type Output = <f32 as IsSame < A > >:: Assoc ;
23+ fn add ( _: Data , _: Self :: Output ) { }
24+ }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #135124
2+ trait A {
3+ fn y ( & self )
4+ {
5+ fn call ( ) -> impl Sized { }
6+ self . fold ( call ( ) ) ;
7+ }
8+ fn fold ( & self , & self . _) { }
9+ }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #135128
2+ //@ compile-flags: -Copt-level=1 --edition=2021
3+
4+ async fn return_str ( ) -> str
5+ where
6+ str : Sized ,
7+ {
8+ * "Sized" . to_string ( ) . into_boxed_str ( )
9+ }
10+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #135210
2+
3+ #![ feature( const_trait_impl) ]
4+ const _: fn ( & String ) = |s| {
5+ & * s as & str ;
6+ } ;
7+
8+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #135341
2+ type A < T > = B ;
3+ type B = _ ;
4+
5+ pub fn main ( ) { }
You can’t perform that action at this time.
0 commit comments