1 // edition:2018 2 3 mod t { t()4 const pub fn t() {} 5 //~^ ERROR expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub` 6 //~| HELP visibility `pub` must come before `const` 7 } 8