We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e1305c2 + dcd6620 commit d2c55caCopy full SHA for d2c55ca
src/test/rustdoc-ui/issue-79467.rs
@@ -0,0 +1,8 @@
1
+fn g()
2
+where
3
+ 'static: 'static,
4
+ dyn 'static: 'static + Copy, //~ ERROR at least one trait is required for an object type
5
+{
6
+}
7
+
8
+fn main() {}
src/test/rustdoc-ui/issue-79467.stderr
@@ -0,0 +1,9 @@
+error[E0224]: at least one trait is required for an object type
+ --> $DIR/issue-79467.rs:4:5
+ |
+LL | dyn 'static: 'static + Copy,
+ | ^^^^^^^^^^^
+error: aborting due to previous error
9
+For more information about this error, try `rustc --explain E0224`.
0 commit comments