rust/tests/ui/impl-trait/define-via-extern.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
405 B
Text
Raw Normal View History

2025-03-24 23:19:33 +00:00
error: only functions, statics, and consts can define opaque types
--> $DIR/define-via-extern.rs:6:5
|
LL | #[define_opaque(Hi)] fn foo();
| ^^^^^^^^^^^^^^^^^^^^
error: only functions, statics, and consts can define opaque types
--> $DIR/define-via-extern.rs:9:5
|
LL | #[define_opaque(Hi)] static HI: Hi;
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors