about summary refs log tree commit diff
path: root/src/test/ui/pub/pub-restricted-error.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-7/+0
2022-03-03Cleanup feature gates.Camille GILLOT-2/+0
2018-12-25Remove licensesMark Rousskov-10/+0
2017-12-01Auto merge of #45997 - estebank:pub-ident, r=nikomatsakisbors-1/+1
Account for missing keyword in fn/struct definition Fix #38911.
2017-11-24Do not attemt to continue parsing after `pub ident`Esteban Küber-1/+1
Try to identify the following code in order to provide better diagnostics, but return the error to bail out early during the parse.
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-1/+1
2017-03-22Add diagnostic for incorrect `pub (restriction)`Esteban Küber-0/+19
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.