This repository was archived by the owner on May 23, 2024. It is now read-only.
File tree 7 files changed +58
-0
lines changed
7 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ fn bug ( ) {
2
+ [ 0 ; [ |f @ & ref _| { } ; 0 ] . len ( ) ] ;
3
+ }
4
+
5
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ #![ feature( const_generics) ]
2
+
3
+ pub struct Tuple ;
4
+
5
+ pub trait ConstInput < const I : usize > {
6
+ type Input ;
7
+ }
8
+
9
+ impl Tuple {
10
+ fn const_index < const I : usize > ( _: <Self as ConstInput < I > >:: Input )
11
+ where
12
+ Self : ConstInput < I >
13
+ { }
14
+ }
15
+
16
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ #![ feature( const_generics) ]
2
+
3
+ #[ derive( PartialEq , Eq ) ]
4
+ struct Config {
5
+ arr_size : usize
6
+ }
7
+
8
+ struct B < const CFG : Config > {
9
+ arr : [ u8 ; { CFG . arr_size } ]
10
+ }
11
+
12
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ async { yield print ! ( ":C" ) } ;
3
+ }
Original file line number Diff line number Diff line change
1
+ #![ feature( impl_trait_in_bindings) ]
2
+
3
+ #[ allow( dead_code) ]
4
+ fn run ( ) {
5
+ let _foo: Box < impl Copy + ' _ > = Box :: new ( ( ) ) ;
6
+ }
7
+
8
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ struct Bug < T > {
2
+ inner : [ ( ) ; { [ |_: & T | { } ; 0 ] . len ( ) } ] ,
3
+ }
4
+
5
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ use std:: marker:: PhantomData ;
2
+
3
+ enum Bug {
4
+ V = [ PhantomData ; { [ ( ) ] . len ( ) ] . len ( ) as isize ,
5
+ // ^
6
+ // + ---- this brace is never closed!!!
7
+ }
8
+
9
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments