File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
branches/try/src/test/run-pass Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
- refs/heads/try: ccf12853d869afa5c6a79baeabd2f2711116261d
5
+ refs/heads/try: d8d4bb4ce36d3de897fa3a63bf14cd8d4de45cea
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ fn foos(_: &[&Foo]) {}
21
21
fn foog < T > ( _: & [ T ] , _: & [ T ] ) { }
22
22
23
23
fn bar ( _: [ Box < Foo > ; 2 ] ) { }
24
- fn bars ( _: & [ Box < Foo > ] ) { }
24
+ fn bars ( _: & [ Box < Foo + ' static > ] ) { }
25
25
26
26
fn main ( ) {
27
27
let x: [ & Foo ; 2 ] = [ & 1 , & 2 ] ;
@@ -45,11 +45,11 @@ fn main() {
45
45
bar ( x) ;
46
46
bar ( [ Box :: new ( 1 ) , Box :: new ( 2 ) ] ) ;
47
47
48
- let x: & [ Box < Foo > ] = & [ Box :: new ( 1 ) , Box :: new ( 2 ) ] ;
48
+ let x: & [ Box < Foo + ' static > ] = & [ Box :: new ( 1 ) , Box :: new ( 2 ) ] ;
49
49
bars ( x) ;
50
50
bars ( & [ Box :: new ( 1 ) , Box :: new ( 2 ) ] ) ;
51
51
52
- let x: & [ Box < Foo > ] = & [ Box :: new ( 1 ) , Box :: new ( 2 ) ] ;
52
+ let x: & [ Box < Foo + ' static > ] = & [ Box :: new ( 1 ) , Box :: new ( 2 ) ] ;
53
53
foog ( x, & [ Box :: new ( 1 ) ] ) ;
54
54
55
55
struct T < ' a > {
You can’t perform that action at this time.
0 commit comments