Skip to content

Commit d8d4bb4

Browse files
committed
fallout to run-pass tests.
1 parent ccf1285 commit d8d4bb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/run-pass/issue-11205.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn foos(_: &[&Foo]) {}
2121
fn foog<T>(_: &[T], _: &[T]) {}
2222

2323
fn bar(_: [Box<Foo>; 2]) {}
24-
fn bars(_: &[Box<Foo>]) {}
24+
fn bars(_: &[Box<Foo+'static>]) {}
2525

2626
fn main() {
2727
let x: [&Foo; 2] = [&1, &2];
@@ -45,11 +45,11 @@ fn main() {
4545
bar(x);
4646
bar([Box::new(1), Box::new(2)]);
4747

48-
let x: &[Box<Foo>] = &[Box::new(1), Box::new(2)];
48+
let x: &[Box<Foo+'static>] = &[Box::new(1), Box::new(2)];
4949
bars(x);
5050
bars(&[Box::new(1), Box::new(2)]);
5151

52-
let x: &[Box<Foo>] = &[Box::new(1), Box::new(2)];
52+
let x: &[Box<Foo+'static>] = &[Box::new(1), Box::new(2)];
5353
foog(x, &[Box::new(1)]);
5454

5555
struct T<'a> {

0 commit comments

Comments
 (0)