summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr')
-rw-r--r--src/test/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/test/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr b/src/test/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr
deleted file mode 100644
index 8d506e580..000000000
--- a/src/test/ui/traits/trait-upcasting/type-checking-test-4.polonius.stderr
+++ /dev/null
@@ -1,52 +0,0 @@
-error: lifetime may not live long enough
- --> $DIR/type-checking-test-4.rs:15:13
- |
-LL | fn test_wrong1<'a>(x: &dyn Foo<'static>, y: &'a u32) {
- | -- lifetime `'a` defined here
-LL | let _ = x as &dyn Bar<'static, 'a>; // Error
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
-
-error: lifetime may not live long enough
- --> $DIR/type-checking-test-4.rs:20:13
- |
-LL | fn test_wrong2<'a>(x: &dyn Foo<'static>, y: &'a u32) {
- | -- lifetime `'a` defined here
-LL | let _ = x as &dyn Bar<'a, 'static>; // Error
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
-
-error: lifetime may not live long enough
- --> $DIR/type-checking-test-4.rs:26:5
- |
-LL | fn test_wrong3<'a>(x: &dyn Foo<'a>) -> Option<&'static u32> {
- | -- lifetime `'a` defined here
-LL | let y = x as &dyn Bar<'_, '_>;
-LL | y.get_b() // ERROR
- | ^^^^^^^^^ returning this value requires that `'a` must outlive `'static`
-
-error: lifetime may not live long enough
- --> $DIR/type-checking-test-4.rs:31:5
- |
-LL | fn test_wrong4<'a>(x: &dyn Foo<'a>) -> Option<&'static u32> {
- | -- lifetime `'a` defined here
-LL | <_ as Bar>::get_b(x) // ERROR
- | ^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static`
-
-error: lifetime may not live long enough
- --> $DIR/type-checking-test-4.rs:36:5
- |
-LL | fn test_wrong5<'a>(x: &dyn Foo<'a>) -> Option<&'static u32> {
- | -- lifetime `'a` defined here
-LL | <_ as Bar<'_, '_>>::get_b(x) // ERROR
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static`
-
-error: lifetime may not live long enough
- --> $DIR/type-checking-test-4.rs:44:5
- |
-LL | fn test_wrong6<'a>(x: &dyn Foo<'a>) -> Option<&'static u32> {
- | -- lifetime `'a` defined here
-...
-LL | z.get_b() // ERROR
- | ^^^^^^^^^ returning this value requires that `'a` must outlive `'static`
-
-error: aborting due to 6 previous errors
-