Skip to content

Commit d2c55ca

Browse files
authored
Rollup merge of rust-lang#98889 - TaKO8Ki:add-regression-test-for-79467, r=Dylan-DPC
Add regression test for rust-lang#79467 closes rust-lang#79467
2 parents e1305c2 + dcd6620 commit d2c55ca

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)