summaryrefslogtreecommitdiffstats
path: root/src/test/ui/wf/issue-95665.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/wf/issue-95665.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/wf/issue-95665.stderr b/src/test/ui/wf/issue-95665.stderr
new file mode 100644
index 000000000..b1cda59a9
--- /dev/null
+++ b/src/test/ui/wf/issue-95665.stderr
@@ -0,0 +1,15 @@
+error[E0277]: the trait bound `u8: Trait` is not satisfied
+ --> $DIR/issue-95665.rs:14:17
+ |
+LL | static VAR: Struct<u8>;
+ | ^^^^^^^^^^ the trait `Trait` is not implemented for `u8`
+ |
+note: required by a bound in `Struct`
+ --> $DIR/issue-95665.rs:6:22
+ |
+LL | pub struct Struct<T: Trait> {
+ | ^^^^^ required by this bound in `Struct`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.