summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr')
-rw-r--r--src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr b/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr
new file mode 100644
index 000000000..cf24d811c
--- /dev/null
+++ b/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr
@@ -0,0 +1,22 @@
+warning: trait bound str: Sized does not depend on any type or lifetime parameters
+ --> $DIR/trivial-bounds-inconsistent-sized.rs:14:31
+ |
+LL | struct S(str, str) where str: Sized;
+ | ^^^^^
+ |
+ = note: `#[warn(trivial_bounds)]` on by default
+
+warning: trait bound for<'a> T<(dyn A + 'a)>: Sized does not depend on any type or lifetime parameters
+ --> $DIR/trivial-bounds-inconsistent-sized.rs:17:49
+ |
+LL | fn unsized_local() where for<'a> T<dyn A + 'a>: Sized {
+ | ^^^^^
+
+warning: trait bound str: Sized does not depend on any type or lifetime parameters
+ --> $DIR/trivial-bounds-inconsistent-sized.rs:22:35
+ |
+LL | fn return_str() -> str where str: Sized {
+ | ^^^^^
+
+warning: 3 warnings emitted
+