summaryrefslogtreecommitdiffstats
path: root/tests/ui/object-safety
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/object-safety/issue-102762.rs (renamed from src/test/ui/object-safety/issue-102762.rs)0
-rw-r--r--tests/ui/object-safety/issue-102762.stderr (renamed from src/test/ui/object-safety/issue-102762.stderr)0
-rw-r--r--tests/ui/object-safety/issue-102933.rs (renamed from src/test/ui/object-safety/issue-102933.rs)0
-rw-r--r--tests/ui/object-safety/issue-106247.rs9
-rw-r--r--tests/ui/object-safety/issue-19538.rs (renamed from src/test/ui/object-safety/issue-19538.rs)0
-rw-r--r--tests/ui/object-safety/issue-19538.stderr (renamed from src/test/ui/object-safety/issue-19538.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-associated-consts.curr.stderr (renamed from src/test/ui/object-safety/object-safety-associated-consts.curr.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr (renamed from src/test/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-associated-consts.rs (renamed from src/test/ui/object-safety/object-safety-associated-consts.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-bounds.rs (renamed from src/test/ui/object-safety/object-safety-bounds.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-bounds.stderr (renamed from src/test/ui/object-safety/object-safety-bounds.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-by-value-self-use.rs (renamed from src/test/ui/object-safety/object-safety-by-value-self-use.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-by-value-self-use.stderr (renamed from src/test/ui/object-safety/object-safety-by-value-self-use.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-by-value-self.rs (renamed from src/test/ui/object-safety/object-safety-by-value-self.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-generics.curr.stderr (renamed from src/test/ui/object-safety/object-safety-generics.curr.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr (renamed from src/test/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-generics.rs (renamed from src/test/ui/object-safety/object-safety-generics.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-issue-22040.rs (renamed from src/test/ui/object-safety/object-safety-issue-22040.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-issue-22040.stderr (renamed from src/test/ui/object-safety/object-safety-issue-22040.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-mentions-Self.curr.stderr (renamed from src/test/ui/object-safety/object-safety-mentions-Self.curr.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr (renamed from src/test/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-mentions-Self.rs (renamed from src/test/ui/object-safety/object-safety-mentions-Self.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-no-static.curr.stderr (renamed from src/test/ui/object-safety/object-safety-no-static.curr.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr (renamed from src/test/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-no-static.rs (renamed from src/test/ui/object-safety/object-safety-no-static.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-phantom-fn.rs (renamed from src/test/ui/object-safety/object-safety-phantom-fn.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-sized-2.curr.stderr (renamed from src/test/ui/object-safety/object-safety-sized-2.curr.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr (renamed from src/test/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-sized-2.rs (renamed from src/test/ui/object-safety/object-safety-sized-2.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-sized.curr.stderr (renamed from src/test/ui/object-safety/object-safety-sized.curr.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr (renamed from src/test/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-sized.rs (renamed from src/test/ui/object-safety/object-safety-sized.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-supertrait-mentions-GAT.rs (renamed from src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr (renamed from src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr)0
-rw-r--r--tests/ui/object-safety/object-safety-supertrait-mentions-Self.rs (renamed from src/test/ui/object-safety/object-safety-supertrait-mentions-Self.rs)0
-rw-r--r--tests/ui/object-safety/object-safety-supertrait-mentions-Self.stderr (renamed from src/test/ui/object-safety/object-safety-supertrait-mentions-Self.stderr)0
36 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/object-safety/issue-102762.rs b/tests/ui/object-safety/issue-102762.rs
index 4f4c36345..4f4c36345 100644
--- a/src/test/ui/object-safety/issue-102762.rs
+++ b/tests/ui/object-safety/issue-102762.rs
diff --git a/src/test/ui/object-safety/issue-102762.stderr b/tests/ui/object-safety/issue-102762.stderr
index 5041ebe77..5041ebe77 100644
--- a/src/test/ui/object-safety/issue-102762.stderr
+++ b/tests/ui/object-safety/issue-102762.stderr
diff --git a/src/test/ui/object-safety/issue-102933.rs b/tests/ui/object-safety/issue-102933.rs
index 843391cff..843391cff 100644
--- a/src/test/ui/object-safety/issue-102933.rs
+++ b/tests/ui/object-safety/issue-102933.rs
diff --git a/tests/ui/object-safety/issue-106247.rs b/tests/ui/object-safety/issue-106247.rs
new file mode 100644
index 000000000..64bf59e5d
--- /dev/null
+++ b/tests/ui/object-safety/issue-106247.rs
@@ -0,0 +1,9 @@
+// check-pass
+
+#![deny(where_clauses_object_safety)]
+
+pub trait Trait {
+ fn method(&self) where Self: Sync;
+}
+
+fn main() {}
diff --git a/src/test/ui/object-safety/issue-19538.rs b/tests/ui/object-safety/issue-19538.rs
index 7054ef41b..7054ef41b 100644
--- a/src/test/ui/object-safety/issue-19538.rs
+++ b/tests/ui/object-safety/issue-19538.rs
diff --git a/src/test/ui/object-safety/issue-19538.stderr b/tests/ui/object-safety/issue-19538.stderr
index 8420637b3..8420637b3 100644
--- a/src/test/ui/object-safety/issue-19538.stderr
+++ b/tests/ui/object-safety/issue-19538.stderr
diff --git a/src/test/ui/object-safety/object-safety-associated-consts.curr.stderr b/tests/ui/object-safety/object-safety-associated-consts.curr.stderr
index 5f94c9284..5f94c9284 100644
--- a/src/test/ui/object-safety/object-safety-associated-consts.curr.stderr
+++ b/tests/ui/object-safety/object-safety-associated-consts.curr.stderr
diff --git a/src/test/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr
index f44de07d5..f44de07d5 100644
--- a/src/test/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr
+++ b/tests/ui/object-safety/object-safety-associated-consts.object_safe_for_dispatch.stderr
diff --git a/src/test/ui/object-safety/object-safety-associated-consts.rs b/tests/ui/object-safety/object-safety-associated-consts.rs
index e1a772e5a..e1a772e5a 100644
--- a/src/test/ui/object-safety/object-safety-associated-consts.rs
+++ b/tests/ui/object-safety/object-safety-associated-consts.rs
diff --git a/src/test/ui/object-safety/object-safety-bounds.rs b/tests/ui/object-safety/object-safety-bounds.rs
index 44bd36932..44bd36932 100644
--- a/src/test/ui/object-safety/object-safety-bounds.rs
+++ b/tests/ui/object-safety/object-safety-bounds.rs
diff --git a/src/test/ui/object-safety/object-safety-bounds.stderr b/tests/ui/object-safety/object-safety-bounds.stderr
index 29ffb5448..29ffb5448 100644
--- a/src/test/ui/object-safety/object-safety-bounds.stderr
+++ b/tests/ui/object-safety/object-safety-bounds.stderr
diff --git a/src/test/ui/object-safety/object-safety-by-value-self-use.rs b/tests/ui/object-safety/object-safety-by-value-self-use.rs
index 8e93c5382..8e93c5382 100644
--- a/src/test/ui/object-safety/object-safety-by-value-self-use.rs
+++ b/tests/ui/object-safety/object-safety-by-value-self-use.rs
diff --git a/src/test/ui/object-safety/object-safety-by-value-self-use.stderr b/tests/ui/object-safety/object-safety-by-value-self-use.stderr
index 94fdcdf26..94fdcdf26 100644
--- a/src/test/ui/object-safety/object-safety-by-value-self-use.stderr
+++ b/tests/ui/object-safety/object-safety-by-value-self-use.stderr
diff --git a/src/test/ui/object-safety/object-safety-by-value-self.rs b/tests/ui/object-safety/object-safety-by-value-self.rs
index c74a4d1cb..c74a4d1cb 100644
--- a/src/test/ui/object-safety/object-safety-by-value-self.rs
+++ b/tests/ui/object-safety/object-safety-by-value-self.rs
diff --git a/src/test/ui/object-safety/object-safety-generics.curr.stderr b/tests/ui/object-safety/object-safety-generics.curr.stderr
index 458103752..458103752 100644
--- a/src/test/ui/object-safety/object-safety-generics.curr.stderr
+++ b/tests/ui/object-safety/object-safety-generics.curr.stderr
diff --git a/src/test/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr
index 9a2d472d5..9a2d472d5 100644
--- a/src/test/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr
+++ b/tests/ui/object-safety/object-safety-generics.object_safe_for_dispatch.stderr
diff --git a/src/test/ui/object-safety/object-safety-generics.rs b/tests/ui/object-safety/object-safety-generics.rs
index 63dcd1699..63dcd1699 100644
--- a/src/test/ui/object-safety/object-safety-generics.rs
+++ b/tests/ui/object-safety/object-safety-generics.rs
diff --git a/src/test/ui/object-safety/object-safety-issue-22040.rs b/tests/ui/object-safety/object-safety-issue-22040.rs
index 1fc5c5442..1fc5c5442 100644
--- a/src/test/ui/object-safety/object-safety-issue-22040.rs
+++ b/tests/ui/object-safety/object-safety-issue-22040.rs
diff --git a/src/test/ui/object-safety/object-safety-issue-22040.stderr b/tests/ui/object-safety/object-safety-issue-22040.stderr
index 0262d5362..0262d5362 100644
--- a/src/test/ui/object-safety/object-safety-issue-22040.stderr
+++ b/tests/ui/object-safety/object-safety-issue-22040.stderr
diff --git a/src/test/ui/object-safety/object-safety-mentions-Self.curr.stderr b/tests/ui/object-safety/object-safety-mentions-Self.curr.stderr
index de430a89b..de430a89b 100644
--- a/src/test/ui/object-safety/object-safety-mentions-Self.curr.stderr
+++ b/tests/ui/object-safety/object-safety-mentions-Self.curr.stderr
diff --git a/src/test/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr
index 40a298bd1..40a298bd1 100644
--- a/src/test/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr
+++ b/tests/ui/object-safety/object-safety-mentions-Self.object_safe_for_dispatch.stderr
diff --git a/src/test/ui/object-safety/object-safety-mentions-Self.rs b/tests/ui/object-safety/object-safety-mentions-Self.rs
index 412d16ff3..412d16ff3 100644
--- a/src/test/ui/object-safety/object-safety-mentions-Self.rs
+++ b/tests/ui/object-safety/object-safety-mentions-Self.rs
diff --git a/src/test/ui/object-safety/object-safety-no-static.curr.stderr b/tests/ui/object-safety/object-safety-no-static.curr.stderr
index 1b025229e..1b025229e 100644
--- a/src/test/ui/object-safety/object-safety-no-static.curr.stderr
+++ b/tests/ui/object-safety/object-safety-no-static.curr.stderr
diff --git a/src/test/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr
index da87b58c9..da87b58c9 100644
--- a/src/test/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr
+++ b/tests/ui/object-safety/object-safety-no-static.object_safe_for_dispatch.stderr
diff --git a/src/test/ui/object-safety/object-safety-no-static.rs b/tests/ui/object-safety/object-safety-no-static.rs
index 03b622174..03b622174 100644
--- a/src/test/ui/object-safety/object-safety-no-static.rs
+++ b/tests/ui/object-safety/object-safety-no-static.rs
diff --git a/src/test/ui/object-safety/object-safety-phantom-fn.rs b/tests/ui/object-safety/object-safety-phantom-fn.rs
index 3ffeb81c1..3ffeb81c1 100644
--- a/src/test/ui/object-safety/object-safety-phantom-fn.rs
+++ b/tests/ui/object-safety/object-safety-phantom-fn.rs
diff --git a/src/test/ui/object-safety/object-safety-sized-2.curr.stderr b/tests/ui/object-safety/object-safety-sized-2.curr.stderr
index b01926412..b01926412 100644
--- a/src/test/ui/object-safety/object-safety-sized-2.curr.stderr
+++ b/tests/ui/object-safety/object-safety-sized-2.curr.stderr
diff --git a/src/test/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr
index 6c29c8d5f..6c29c8d5f 100644
--- a/src/test/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr
+++ b/tests/ui/object-safety/object-safety-sized-2.object_safe_for_dispatch.stderr
diff --git a/src/test/ui/object-safety/object-safety-sized-2.rs b/tests/ui/object-safety/object-safety-sized-2.rs
index 1e79b8cd9..1e79b8cd9 100644
--- a/src/test/ui/object-safety/object-safety-sized-2.rs
+++ b/tests/ui/object-safety/object-safety-sized-2.rs
diff --git a/src/test/ui/object-safety/object-safety-sized.curr.stderr b/tests/ui/object-safety/object-safety-sized.curr.stderr
index 974813121..974813121 100644
--- a/src/test/ui/object-safety/object-safety-sized.curr.stderr
+++ b/tests/ui/object-safety/object-safety-sized.curr.stderr
diff --git a/src/test/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr b/tests/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr
index 70a44ed61..70a44ed61 100644
--- a/src/test/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr
+++ b/tests/ui/object-safety/object-safety-sized.object_safe_for_dispatch.stderr
diff --git a/src/test/ui/object-safety/object-safety-sized.rs b/tests/ui/object-safety/object-safety-sized.rs
index b424b892d..b424b892d 100644
--- a/src/test/ui/object-safety/object-safety-sized.rs
+++ b/tests/ui/object-safety/object-safety-sized.rs
diff --git a/src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.rs b/tests/ui/object-safety/object-safety-supertrait-mentions-GAT.rs
index 14e00d2ef..14e00d2ef 100644
--- a/src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.rs
+++ b/tests/ui/object-safety/object-safety-supertrait-mentions-GAT.rs
diff --git a/src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr b/tests/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr
index f05b0cd65..f05b0cd65 100644
--- a/src/test/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr
+++ b/tests/ui/object-safety/object-safety-supertrait-mentions-GAT.stderr
diff --git a/src/test/ui/object-safety/object-safety-supertrait-mentions-Self.rs b/tests/ui/object-safety/object-safety-supertrait-mentions-Self.rs
index 2445b33c8..2445b33c8 100644
--- a/src/test/ui/object-safety/object-safety-supertrait-mentions-Self.rs
+++ b/tests/ui/object-safety/object-safety-supertrait-mentions-Self.rs
diff --git a/src/test/ui/object-safety/object-safety-supertrait-mentions-Self.stderr b/tests/ui/object-safety/object-safety-supertrait-mentions-Self.stderr
index a106ab995..a106ab995 100644
--- a/src/test/ui/object-safety/object-safety-supertrait-mentions-Self.stderr
+++ b/tests/ui/object-safety/object-safety-supertrait-mentions-Self.stderr