about summary refs log tree commit diff
path: root/tests/ui/issues/issue-72839-error-overflow.rs
diff options
context:
space:
mode:
authorOneirical <manchot@videotron.ca>2025-07-13 16:25:27 -0400
committerOneirical <manchot@videotron.ca>2025-08-04 16:43:53 -0400
commit7196d8cd661b875401126a81641d2effc40b3d85 (patch)
tree4e3f314add6e442f40dc9cba83c397a942c01776 /tests/ui/issues/issue-72839-error-overflow.rs
parent4b596bbd847672da87763b76171687d3544863c2 (diff)
downloadrust-7196d8cd661b875401126a81641d2effc40b3d85.tar.gz
rust-7196d8cd661b875401126a81641d2effc40b3d85.zip
Rehome tests/ui/issues/ tests [3/?]
Diffstat (limited to 'tests/ui/issues/issue-72839-error-overflow.rs')
-rw-r--r--tests/ui/issues/issue-72839-error-overflow.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/ui/issues/issue-72839-error-overflow.rs b/tests/ui/issues/issue-72839-error-overflow.rs
deleted file mode 100644
index 6562d228409..00000000000
--- a/tests/ui/issues/issue-72839-error-overflow.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Regression test for issue #72839
-// Tests that we do not overflow during trait selection after
-// a type error occurs
-use std::ops::Rem;
-trait Foo {}
-struct MyStruct<T>(T);
-
-impl<T, U> Rem<MyStruct<T>> for MyStruct<U> where MyStruct<U>: Rem<MyStruct<T>> {
-    type Output = u8;
-    fn rem(self, _: MyStruct<T>) -> Self::Output {
-        panic!()
-    }
-}
-
-fn main() {}
-
-fn foo() {
-    if missing_var % 8 == 0 {} //~ ERROR cannot find
-}