update compile-fail tests; remove now redundant issue-39122.rs
It is subsumed by ui/param-bounds-ignored.rs.
This commit is contained in:
parent
86821f7fb6
commit
30b5be0e95
@ -12,8 +12,7 @@
|
||||
|
||||
#![feature(unsized_tuple_coercion)]
|
||||
|
||||
type Fat<T: ?Sized> = (isize, &'static str, T);
|
||||
//~^ WARNING bounds are ignored
|
||||
type Fat<T> = (isize, &'static str, T);
|
||||
|
||||
#[derive(PartialEq,Eq)]
|
||||
struct Bar;
|
||||
|
@ -10,5 +10,5 @@
|
||||
|
||||
trait Tr {}
|
||||
type Huh<T> where T: Tr = isize; //~ ERROR type parameter `T` is unused
|
||||
//~| WARNING E0122
|
||||
//~| WARNING where clauses are ignored in type aliases
|
||||
fn main() {}
|
||||
|
@ -8,6 +8,8 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![allow(ignored_generic_bounds)]
|
||||
|
||||
pub enum Expr<'var, VAR> {
|
||||
Let(Box<Expr<'var, VAR>>,
|
||||
Box<for<'v: 'var> Fn(Expr<'v, VAR>) -> Expr<'v, VAR> + 'var>)
|
||||
|
@ -1,13 +0,0 @@
|
||||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
type Foo<T: std::ops::Add> = T; //~ WARNING E0122
|
||||
|
||||
type Bar<T> where T: std::ops::Add = T; //~ WARNING E0122
|
@ -58,7 +58,7 @@ mod traits {
|
||||
pub trait PubTr {}
|
||||
|
||||
pub type Alias<T: PrivTr> = T; //~ ERROR private trait `traits::PrivTr` in public interface
|
||||
//~^ WARN bounds are ignored in type aliases
|
||||
//~^ WARNING bounds on generic type parameters are ignored
|
||||
//~| WARNING hard error
|
||||
pub trait Tr1: PrivTr {} //~ ERROR private trait `traits::PrivTr` in public interface
|
||||
//~^ WARNING hard error
|
||||
@ -85,7 +85,7 @@ mod traits_where {
|
||||
pub type Alias<T> where T: PrivTr = T;
|
||||
//~^ ERROR private trait `traits_where::PrivTr` in public interface
|
||||
//~| WARNING hard error
|
||||
//~| WARNING E0122
|
||||
//~| WARNING where clauses are ignored in type aliases
|
||||
pub trait Tr2<T> where T: PrivTr {}
|
||||
//~^ ERROR private trait `traits_where::PrivTr` in public interface
|
||||
//~| WARNING hard error
|
||||
|
@ -22,7 +22,7 @@ static NON_ELIDABLE_FN: &fn(&u8, &u8) -> &u8 =
|
||||
struct SomeStruct<'x, 'y, 'z: 'x> {
|
||||
foo: &'x Foo<'z>,
|
||||
bar: &'x Bar<'z>,
|
||||
f: &'y for<'a, 'b: 'a> Fn(&'a Foo<'b>) -> &'a Bar<'b>,
|
||||
f: &'y for<'a, 'b> Fn(&'a Foo<'b>) -> &'a Bar<'b>,
|
||||
}
|
||||
|
||||
fn id<T>(t: T) -> T {
|
||||
|
Loading…
x
Reference in New Issue
Block a user