Skip to content

Commit

Permalink
fallout to run-pass tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed May 8, 2015
1 parent ccf1285 commit d8d4bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/run-pass/issue-11205.rs
Expand Up @@ -21,7 +21,7 @@ fn foos(_: &[&Foo]) {}
fn foog<T>(_: &[T], _: &[T]) {}

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

fn main() {
let x: [&Foo; 2] = [&1, &2];
Expand All @@ -45,11 +45,11 @@ fn main() {
bar(x);
bar([Box::new(1), Box::new(2)]);

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

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

struct T<'a> {
Expand Down

0 comments on commit d8d4bb4

Please sign in to comment.