Skip to content

Conversation

Muscraft
Copy link
Member

This PR makes it so that you can "annotate" text with AnnotationKind::Visible to keep it from getting folded, allowing you to keep some lines around as context without underlining them with annotation characters.

error: functions are not allowed in struct definitions
  --> $DIR/struct-fn-in-definition.rs:9:5
   |
LL | struct S {
...
LL |     fn foo() {}
   |     ^^^^^^^^^^^
   |
   = help: unlike in C++, Java, and C#, functions are declared in `impl` blocks

@epage epage merged commit d6c6bbd into rust-lang:master Jul 29, 2025
15 checks passed
@Muscraft Muscraft deleted the keep-lines branch July 29, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants