File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,5 @@ type A3 = dyn<<dyn as dyn>::dyn>;
20
20
//~^ ERROR cannot find type `dyn` in this scope
21
21
//~| ERROR cannot find type `dyn` in this scope
22
22
//~| ERROR Use of undeclared type or module `dyn`
23
- type A4 = dyn ( dyn , dyn ) -> dyn ;
24
- //~^ ERROR cannot find type `dyn` in this scope
25
- //~| ERROR cannot find type `dyn` in this scope
26
- //~| ERROR cannot find type `dyn` in this scope
27
- //~| ERROR cannot find type `dyn` in this scope
28
23
29
24
fn main ( ) { }
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ static BYTE: u8 = 33;
17
17
fn main ( ) {
18
18
let x: & ( dyn ' static + Display ) = & BYTE ;
19
19
let y: Box < dyn Display + ' static > = Box :: new ( BYTE ) ;
20
+ let _: & dyn ( Display ) = & BYTE ;
21
+ let _: & dyn ( :: std:: fmt:: Display ) = & BYTE ;
20
22
let xstr = format ! ( "{}" , x) ;
21
23
let ystr = format ! ( "{}" , y) ;
22
24
assert_eq ! ( xstr, "33" ) ;
You can’t perform that action at this time.
0 commit comments