Skip to content

Commit 30b5be0

Browse files
committed
update compile-fail tests; remove now redundant issue-39122.rs
It is subsumed by ui/param-bounds-ignored.rs.
1 parent 86821f7 commit 30b5be0

File tree

6 files changed

+7
-19
lines changed

6 files changed

+7
-19
lines changed

src/test/compile-fail/dst-bad-assign-3.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212

1313
#![feature(unsized_tuple_coercion)]
1414

15-
type Fat<T: ?Sized> = (isize, &'static str, T);
16-
//~^ WARNING bounds are ignored
15+
type Fat<T> = (isize, &'static str, T);
1716

1817
#[derive(PartialEq,Eq)]
1918
struct Bar;

src/test/compile-fail/issue-17994.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010

1111
trait Tr {}
1212
type Huh<T> where T: Tr = isize; //~ ERROR type parameter `T` is unused
13-
//~| WARNING E0122
13+
//~| WARNING where clauses are ignored in type aliases
1414
fn main() {}

src/test/compile-fail/issue-23046.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(ignored_generic_bounds)]
12+
1113
pub enum Expr<'var, VAR> {
1214
Let(Box<Expr<'var, VAR>>,
1315
Box<for<'v: 'var> Fn(Expr<'v, VAR>) -> Expr<'v, VAR> + 'var>)

src/test/compile-fail/issue-39122.rs

-13
This file was deleted.

src/test/compile-fail/private-in-public-warn.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ mod traits {
5858
pub trait PubTr {}
5959

6060
pub type Alias<T: PrivTr> = T; //~ ERROR private trait `traits::PrivTr` in public interface
61-
//~^ WARN bounds are ignored in type aliases
61+
//~^ WARNING bounds on generic type parameters are ignored
6262
//~| WARNING hard error
6363
pub trait Tr1: PrivTr {} //~ ERROR private trait `traits::PrivTr` in public interface
6464
//~^ WARNING hard error
@@ -85,7 +85,7 @@ mod traits_where {
8585
pub type Alias<T> where T: PrivTr = T;
8686
//~^ ERROR private trait `traits_where::PrivTr` in public interface
8787
//~| WARNING hard error
88-
//~| WARNING E0122
88+
//~| WARNING where clauses are ignored in type aliases
8989
pub trait Tr2<T> where T: PrivTr {}
9090
//~^ ERROR private trait `traits_where::PrivTr` in public interface
9191
//~| WARNING hard error

src/test/compile-fail/rfc1623.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static NON_ELIDABLE_FN: &fn(&u8, &u8) -> &u8 =
2222
struct SomeStruct<'x, 'y, 'z: 'x> {
2323
foo: &'x Foo<'z>,
2424
bar: &'x Bar<'z>,
25-
f: &'y for<'a, 'b: 'a> Fn(&'a Foo<'b>) -> &'a Bar<'b>,
25+
f: &'y for<'a, 'b> Fn(&'a Foo<'b>) -> &'a Bar<'b>,
2626
}
2727

2828
fn id<T>(t: T) -> T {

0 commit comments

Comments
 (0)