summary refs log tree commit diff
path: root/src/test/compile-fail/privacy/restricted/tuple-struct-fields
AgeCommit message (Collapse)AuthorLines
2017-10-25Update tests for less noisy error messagesThomas Karpiniec-3/+1
2017-03-22Add diagnostic for incorrect `pub (restriction)`Esteban Küber-9/+12
Given the following statement ```rust pub (a) fn afn() {} ``` Provide the following diagnostic: ```rust error: incorrect restriction in `pub` --> file.rs:15:1 | 15 | pub (a) fn afn() {} | ^^^^^^^ | = help: some valid visibility restrictions are: `pub(crate)`: visible only on the current crate `pub(super)`: visible only in the current module's parent `pub(in path::to::module)`: visible only on the specified path help: to make this visible only to module `a`, add `in` before the path: | pub (in a) fn afn() {} ``` Remove cruft from old `pub(path)` syntax.
2017-03-21Refactor parsing of trait object typesVadim Petrochenkov-6/+6
2017-03-15Stabilize pub(restricted)Taylor Cramer-6/+0
2016-08-26Stabilize type-macrosDaniele Baracchi-3/+3
Closes #27245
2016-04-27Add testsJeffrey Seyfried-0/+66