summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/issue-67690-type-alias-bound-diagnostic-crash.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/type/issue-67690-type-alias-bound-diagnostic-crash.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/type/issue-67690-type-alias-bound-diagnostic-crash.stderr b/src/test/ui/type/issue-67690-type-alias-bound-diagnostic-crash.stderr
new file mode 100644
index 000000000..125ffbbb4
--- /dev/null
+++ b/src/test/ui/type/issue-67690-type-alias-bound-diagnostic-crash.stderr
@@ -0,0 +1,15 @@
+warning: bounds on generic parameters are not enforced in type aliases
+ --> $DIR/issue-67690-type-alias-bound-diagnostic-crash.rs:5:15
+ |
+LL | pub type T<P: Send + Send + Send> = P;
+ | ^^^^ ^^^^ ^^^^
+ |
+ = note: `#[warn(type_alias_bounds)]` on by default
+help: the bound will not be checked when the type alias is used, and should be removed
+ |
+LL - pub type T<P: Send + Send + Send> = P;
+LL + pub type T<P> = P;
+ |
+
+warning: 1 warning emitted
+