diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/typeck/issue-89275.rs | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-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/typeck/issue-89275.rs')
-rw-r--r-- | src/test/ui/typeck/issue-89275.rs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/ui/typeck/issue-89275.rs b/src/test/ui/typeck/issue-89275.rs deleted file mode 100644 index b91c00175..000000000 --- a/src/test/ui/typeck/issue-89275.rs +++ /dev/null @@ -1,29 +0,0 @@ -#![recursion_limit = "5"] // To reduce noise - -//expect mutability error when ambiguous traits are in scope -//and not an overflow error on the span in the main function. - -struct Ratio<T>(T); - -pub trait Pow { - fn pow(self) -> Self; -} - -impl<'a, T> Pow for &'a Ratio<T> -where - &'a T: Pow, -{ - fn pow(self) -> Self { - self - } -} - -fn downcast<'a, W: ?Sized>() -> &'a W { - todo!() -} - -struct Other; - -fn main() { - let other: &mut Other = downcast();//~ERROR 28:29: 28:39: mismatched types [E0308] -} |