File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 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>;
2020//~^ ERROR cannot find type `dyn` in this scope
2121//~| ERROR cannot find type `dyn` in this scope
2222//~| 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
2823
2924fn main ( ) { }
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ static BYTE: u8 = 33;
1717fn main ( ) {
1818 let x: & ( dyn ' static + Display ) = & BYTE ;
1919 let y: Box < dyn Display + ' static > = Box :: new ( BYTE ) ;
20+ let _: & dyn ( Display ) = & BYTE ;
21+ let _: & dyn ( :: std:: fmt:: Display ) = & BYTE ;
2022 let xstr = format ! ( "{}" , x) ;
2123 let ystr = format ! ( "{}" , y) ;
2224 assert_eq ! ( xstr, "33" ) ;
You can’t perform that action at this time.
0 commit comments