about summary refs log tree commit diff
path: root/tests/ui/methods/missing-bound-on-tuple.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-09-10 18:17:51 +0000
committerbors <bors@rust-lang.org>2025-09-10 18:17:51 +0000
commit1c785abde778e1173dce1aba1ae471814c8fa1ab (patch)
tree4eea515b347e78c2887bf89c544e21533edc0a8f /tests/ui/methods/missing-bound-on-tuple.rs
parentfb918cec013920472f6975b2009b0339d9e8cc9c (diff)
parentb630713bdf6fa2a00b66c7174bb147c40067c9d4 (diff)
downloadrust-1c785abde778e1173dce1aba1ae471814c8fa1ab.tar.gz
rust-1c785abde778e1173dce1aba1ae471814c8fa1ab.zip
Auto merge of #146350 - cuviper:beta-next, r=cuviper
[beta] backports

- Rust build fails on OpenBSD after using file_lock feature rust-lang/rust#145511
- Revert suggestions for missing methods in tuples rust-lang/rust#145765
- When determining if a trait has no entries for the purposes of omitting vptrs from subtrait vtables, consider its transitive supertraits' entries, instead of just its own entries. rust-lang/rust#145807
- Ship LLVM tools for the correct target when cross-compiling rust-lang/rust#145763
- bootstrap: vendor `clippy_test_deps` too rust-lang/rust#145861

r? cuviper
Diffstat (limited to 'tests/ui/methods/missing-bound-on-tuple.rs')
-rw-r--r--tests/ui/methods/missing-bound-on-tuple.rs39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/ui/methods/missing-bound-on-tuple.rs b/tests/ui/methods/missing-bound-on-tuple.rs
deleted file mode 100644
index 25deabf5926..00000000000
--- a/tests/ui/methods/missing-bound-on-tuple.rs
+++ /dev/null
@@ -1,39 +0,0 @@
-trait WorksOnDefault {
-    fn do_something() {}
-}
-
-impl<T: Default> WorksOnDefault for T {}
-//~^ NOTE the following trait bounds were not satisfied
-//~| NOTE unsatisfied trait bound introduced here
-
-trait Foo {}
-
-trait WorksOnFoo {
-    fn do_be_do() {}
-}
-
-impl<T: Foo> WorksOnFoo for T {}
-//~^ NOTE the following trait bounds were not satisfied
-//~| NOTE unsatisfied trait bound introduced here
-
-impl<A: Foo, B: Foo, C: Foo> Foo for (A, B, C) {}
-//~^ NOTE `Foo` is implemented for `(i32, u32, String)`
-impl Foo for i32 {}
-impl Foo for &i32 {}
-impl Foo for u32 {}
-impl Foo for String {}
-
-fn main() {
-    let _success = <(i32, u32, String)>::do_something();
-    let _failure = <(i32, &u32, String)>::do_something(); //~ ERROR E0599
-    //~^ NOTE `Default` is implemented for `(i32, u32, String)`
-    //~| NOTE function or associated item cannot be called on
-    let _success = <(i32, u32, String)>::do_be_do();
-    let _failure = <(i32, &u32, String)>::do_be_do(); //~ ERROR E0599
-    //~^ NOTE function or associated item cannot be called on
-    let _success = <(i32, u32, String)>::default();
-    let _failure = <(i32, &u32, String)>::default(); //~ ERROR E0599
-    //~^ NOTE `Default` is implemented for `(i32, u32, String)`
-    //~| NOTE function or associated item cannot be called on
-    //~| NOTE the following trait bounds were not satisfied
-}