File tree 8 files changed +94
-0
lines changed
8 files changed +94
-0
lines changed Original file line number Diff line number Diff line change
1
+ //@ known-bug: #132127
2
+ #![ feature( dyn_star) ]
3
+
4
+ trait Trait { }
5
+
6
+ fn main ( ) {
7
+ let x: dyn * Trait + Send = 1usize ;
8
+ x as dyn * Trait ;
9
+ }
Original file line number Diff line number Diff line change
1
+ //@ known-bug: #132142
2
+
3
+ async extern "C-cmse-nonsecure-entry" fn fun ( ...) { }
Original file line number Diff line number Diff line change
1
+ //@ known-bug: #132320
2
+ //@ compile-flags: -Znext-solver=globally
3
+
4
+ trait Foo {
5
+ type Item ;
6
+ fn foo ( & mut self ) ;
7
+ }
8
+
9
+ impl Foo for ( ) {
10
+ type Item = Option < ( ) > ;
11
+
12
+ fn foo ( & mut self ) {
13
+ let _ = Self :: Item :: None ;
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ //@ known-bug: #132330
2
+ //@compile-flags: -Znext-solver=globally
3
+
4
+ trait Service {
5
+ type S ;
6
+ }
7
+
8
+ trait Framing {
9
+ type F ;
10
+ }
11
+
12
+ impl Framing for ( ) {
13
+ type F = ( ) ;
14
+ }
15
+
16
+ trait HttpService < F : Framing > : Service < S = F :: F > { }
17
+
18
+ type BoxService = Box < dyn HttpService < ( ) , S = ( ) > > ;
19
+
20
+ fn build_server < F : FnOnce ( ) -> BoxService > ( _: F ) { }
21
+
22
+ fn make_server < F : Framing > ( ) -> Box < dyn HttpService < F , S = F :: F > > {
23
+ unimplemented ! ( )
24
+ }
25
+
26
+ fn main ( ) {
27
+ build_server ( || make_server ( ) )
28
+ }
Original file line number Diff line number Diff line change
1
+ //@ known-bug: #132335
2
+ //@ compile-flags: -Znext-solver=globally --crate-type lib --edition=2018
3
+ use core:: future:: Future ;
4
+ use core:: pin:: Pin ;
5
+
6
+ pub trait Unit { }
7
+ impl Unit for ( ) { }
8
+
9
+ pub fn get_all_files_in_dir ( ) -> Pin < Box < dyn Future < Output = impl Unit > > > {
10
+ Box :: pin ( async {
11
+ get_all_files_in_dir ( ) . await ;
12
+ } )
13
+ }
Original file line number Diff line number Diff line change
1
+ //@ known-bug: #123291
2
+
3
+ trait MyTrait {
4
+ #[ repr( align) ]
5
+ fn myfun ( ) ;
6
+ }
7
+
8
+ pub fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ //@ known-bug: #132430
2
+
3
+ //@compile-flags: --edition=2018 --crate-type=lib
4
+ #![ feature( cmse_nonsecure_entry) ]
5
+ struct Test ;
6
+
7
+ impl Test {
8
+ pub async unsafe extern "C-cmse-nonsecure-entry" fn test ( val : & str ) { }
9
+ }
Original file line number Diff line number Diff line change
1
+ //@ known-bug: #132530
2
+
3
+ #![ feature( non_lifetime_binders) ]
4
+
5
+ trait Trait < ' a , A > {
6
+ type Assoc < ' a > = i32 ;
7
+ }
8
+
9
+ fn a ( ) -> impl for < T > Trait < Assoc = impl Trait < T > > { }
You can’t perform that action at this time.
0 commit comments