diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index ecef168dcad..d5328a18c22 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -383,7 +383,7 @@ fn ensure_no_param_bounds(tcx: TyCtxt, // part of this PR. Still, convert to warning to // make bootstrapping easier. span_warn!(tcx.sess, span, E0122, - "bounds are ignored in {}", + "generic bounds are ignored in {}", thing); } } diff --git a/src/test/ui/param-bounds-ignored.stderr b/src/test/ui/param-bounds-ignored.stderr index a14d416aaa7..19aa9c5d6e5 100644 --- a/src/test/ui/param-bounds-ignored.stderr +++ b/src/test/ui/param-bounds-ignored.stderr @@ -1,16 +1,16 @@ -warning[E0122]: bounds are ignored in type aliases +warning[E0122]: generic bounds are ignored in type aliases --> $DIR/param-bounds-ignored.rs:15:1 | 15 | type SVec = Vec; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -warning[E0122]: bounds are ignored in type aliases +warning[E0122]: generic bounds are ignored in type aliases --> $DIR/param-bounds-ignored.rs:16:1 | 16 | type VVec<'b, 'a: 'b> = Vec<&'a i32>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -warning[E0122]: bounds are ignored in type aliases +warning[E0122]: generic bounds are ignored in type aliases --> $DIR/param-bounds-ignored.rs:17:1 | 17 | type WVec<'b, T: 'b> = Vec;