Skip to content

Commit e1e3983

Browse files
committed
Add note about alternate syntax
1 parent c1cc9e7 commit e1e3983

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

text/3323-restrictions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ Trait aliases cannot be implemented. As such, there is no concern about compatib
381381

382382
- `impl` and `mut` restrictions could be attributes, similar to `#[non_exhaustive]`.
383383
- The proposed syntax could by syntactic sugar for these attributes.
384+
- Visibility could be altered to accept restrictions as a type of parameter, such as
385+
`pub(crate, mut = self)`. This does not work because restrictions are not permitted everywhere
386+
visibility is.
384387

385388
# Prior art
386389

0 commit comments

Comments
 (0)