add regression test for #79467
This commit is contained in:
parent
2557603f32
commit
dcd6620e36
8
src/test/rustdoc-ui/issue-79467.rs
Normal file
8
src/test/rustdoc-ui/issue-79467.rs
Normal file
@ -0,0 +1,8 @@
|
||||
fn g()
|
||||
where
|
||||
'static: 'static,
|
||||
dyn 'static: 'static + Copy, //~ ERROR at least one trait is required for an object type
|
||||
{
|
||||
}
|
||||
|
||||
fn main() {}
|
9
src/test/rustdoc-ui/issue-79467.stderr
Normal file
9
src/test/rustdoc-ui/issue-79467.stderr
Normal file
@ -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
|
||||
|
||||
For more information about this error, try `rustc --explain E0224`.
|
Loading…
x
Reference in New Issue
Block a user