File tree Expand file tree Collapse file tree 11 files changed +183
-0
lines changed Expand file tree Collapse file tree 11 files changed +183
-0
lines changed Original file line number Diff line number Diff line change 1+ //@ known-bug: #134336
2+ #![ expect( incomplete_features) ]
3+ #![ feature( explicit_tail_calls) ]
4+
5+ trait Tr {
6+ fn f ( ) ;
7+ }
8+
9+ fn g < T : Tr > ( ) {
10+ become T :: f ( ) ;
11+ }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #134355
2+
3+ //@compile-flags: --crate-type=lib
4+ fn digit ( ) -> str {
5+ return { i32:: MIN } ;
6+ }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #134479
2+ //@ compile-flags: -Csymbol-mangling-version=v0 -Cdebuginfo=1
3+
4+ #![ feature( generic_const_exprs) ]
5+
6+ fn main ( ) {
7+ test :: < 2 > ( ) ;
8+ }
9+
10+ struct Test < const N : usize > ;
11+
12+ fn new < const N : usize > ( ) -> Test < N >
13+ where
14+ [ ( ) ; N * 1 ] : Sized ,
15+ {
16+ Test
17+ }
18+
19+ fn test < const N : usize > ( ) -> Test < { N - 1 } >
20+ where
21+ [ ( ) ; ( N - 1 ) * 1 ] : Sized ,
22+ {
23+ new ( )
24+ }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #134587
2+
3+ use std:: ops:: Add ;
4+
5+ pub fn foo < T > ( slf : * const T )
6+ where
7+ * const T : Add ,
8+ {
9+ slf + slf;
10+ }
11+
12+ pub fn foo2 < T > ( slf : * const T )
13+ where
14+ * const T : Add < u8 > ,
15+ {
16+ slf + 1_u8 ;
17+ }
18+
19+
20+ pub trait TimesTwo
21+ where * const Self : Add < * const Self > ,
22+ {
23+ extern "C" fn t2_ptr ( slf : * const Self )
24+ -> <* const Self as Add < * const Self > >:: Output {
25+ slf + slf
26+ }
27+ }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #134615
2+
3+ #![ feature( generic_const_exprs) ]
4+
5+ trait Trait {
6+ const CONST : usize ;
7+ }
8+
9+ fn f ( )
10+ where
11+ for < ' a > ( ) : Trait ,
12+ [ ( ) ; <( ) as Trait >:: CONST ] : ,
13+ {
14+ }
15+
16+ pub fn main ( ) { }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #134641
2+ #![ feature( associated_const_equality) ]
3+
4+ pub trait IsVoid {
5+ const IS_VOID : bool ;
6+ }
7+ impl IsVoid for ( ) {
8+ const IS_VOID : bool = true ;
9+ }
10+
11+ pub trait Maybe { }
12+ impl Maybe for ( ) { }
13+ impl Maybe for ( ) where ( ) : IsVoid < IS_VOID = true > { }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #134654
2+ //@ compile-flags: -Zmir-enable-passes=+GVN -Zmir-enable-passes=+Inline -Zvalidate-mir
3+
4+ fn function_with_bytes < const BYTES :
5+ & ' static [ u8 ; 0xa9008fb6c9d81e42_0e25730562a601c8_u128 ] > ( ) -> & ' static [ u8 ] {
6+ BYTES
7+ }
8+
9+ fn main ( ) {
10+ function_with_bytes :: < b"aa" > ( ) == & [ ] ;
11+ }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #134838
2+ #![ feature( type_ascription) ]
3+ #![ allow( dead_code) ]
4+
5+ struct Ty ( ( ) ) ;
6+
7+ fn mk ( ) -> impl Sized {
8+ if false {
9+ let _ = type_ascribe ! ( mk( ) , Ty ) . 0 ;
10+ }
11+ Ty ( ( ) )
12+ }
13+
14+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #134905
2+
3+ trait Iterate < ' a > {
4+ type Ty : Valid ;
5+ }
6+ impl < ' a , T > Iterate < ' a > for T
7+ where
8+ T : Check ,
9+ {
10+ default type Ty = ( ) ;
11+ }
12+
13+ trait Check { }
14+ impl < ' a , T > Eq for T where <T as Iterate < ' a > >:: Ty : Valid { }
15+
16+ trait Valid { }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #135020
2+
3+ pub fn problem_thingy ( items : & mut impl Iterator < Item = str > ) {
4+ let mut peeker = items. peekable ( ) ;
5+ match peeker. peek ( ) {
6+ Some ( _) => ( ) ,
7+ None => return ( ) ,
8+ }
9+ }
10+
11+ pub fn main ( ) { }
You can’t perform that action at this time.
0 commit comments