Skip to content

Commit dcd6620

Browse files
committed
add regression test for #79467
1 parent 2557603 commit dcd6620

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Diff for: src/test/rustdoc-ui/issue-79467.rs

+8
Original file line numberDiff line numberDiff line change
@@ -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() {}

Diff for: src/test/rustdoc-ui/issue-79467.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0224]: at least one trait is required for an object type
2+
--> $DIR/issue-79467.rs:4:5
3+
|
4+
LL | dyn 'static: 'static + Copy,
5+
| ^^^^^^^^^^^
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0224`.

0 commit comments

Comments
 (0)