``` @safe: struct S { int val; int* ptr; int* retScope() return scope { return &this.val; } } ``` The error "perhaps remove `scope` parameter annotation so `return` applies to `ref`" refers to the old dip1000 design, which has been superseded.
@dkorpel created dlang/dmd pull request #13875 "Fix issue 22914 - outdated supplemental error "perhaps remove scope"" fixing this issue: - Fix issue 22914 - outdated supplemental error "perhaps remove scope" https://github.com/dlang/dmd/pull/13875
dlang/dmd pull request #13875 "Fix issue 22914 - outdated supplemental error "perhaps remove scope"" was merged into master: - 5e00be6960ca9d09c380d78951fa040320cb7752 by Dennis Korpel: Fix issue 22914 - outdated supplemental error "perhaps remove scope" https://github.com/dlang/dmd/pull/13875