File tree Expand file tree Collapse file tree 4 files changed +77
-0
lines changed Expand file tree Collapse file tree 4 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ //@ known-bug: #117460
2+ #![ feature( generic_const_exprs) ]
3+
4+ struct Matrix < D = [ ( ) ; 2 + 2 ] > {
5+ d : D ,
6+ }
7+
8+ impl Matrix { }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #119095
2+ //@ compile-flags: --edition=2021
3+
4+ fn any < T > ( ) -> T {
5+ loop { }
6+ }
7+
8+ trait Acquire {
9+ type Connection ;
10+ }
11+
12+ impl Acquire for & ' static ( ) {
13+ type Connection = ( ) ;
14+ }
15+
16+ trait Unit { }
17+ impl Unit for ( ) { }
18+
19+ fn get_connection < T > ( ) -> impl Unit
20+ where
21+ T : Acquire ,
22+ T :: Connection : Unit ,
23+ {
24+ any :: < T :: Connection > ( )
25+ }
26+
27+ fn main ( ) {
28+ let future = async { async { get_connection :: < & ' static ( ) > ( ) } . await } ;
29+
30+ future. resolve_me ( ) ;
31+ }
32+
33+ trait ResolveMe {
34+ fn resolve_me ( self ) ;
35+ }
36+
37+ impl < S > ResolveMe for S
38+ where
39+ ( ) : CheckSend < S > ,
40+ {
41+ fn resolve_me ( self ) { }
42+ }
43+
44+ trait CheckSend < F > { }
45+ impl < F > CheckSend < F > for ( ) where F : Send { }
46+
47+ trait NeverImplemented { }
48+ impl < E , F > CheckSend < F > for E where E : NeverImplemented { }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #126443
2+ //@ compile-flags: -Copt-level=0
3+ #![ feature( generic_const_exprs) ]
4+
5+ fn double_up < const M : usize > ( ) -> [ ( ) ; M * 2 ] {
6+ todo ! ( )
7+ }
8+
9+ fn quadruple_up < const N : usize > ( ) -> [ ( ) ; N * 2 * 2 ] {
10+ double_up ( )
11+ }
12+
13+ fn main ( ) {
14+ quadruple_up :: < 0 > ( ) ;
15+ }
Original file line number Diff line number Diff line change 1+ //@ known-bug: #128097
2+ #![ feature( explicit_tail_calls) ]
3+ fn f ( x : & mut ( ) ) {
4+ let _y: String ;
5+ become f( x) ;
6+ }
You can’t perform that action at this time.
0 commit comments