summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-87694-duplicated-pub.rs
blob: e3ea61dc4ada6c9d3253382e060e64bd8e43f916 (plain)
1
2
3
4
5
pub const pub fn test() {}
//~^ ERROR expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
//~| NOTE expected one of `async`, `extern`, `fn`, or `unsafe`
//~| HELP there is already a visibility modifier, remove one
//~| NOTE explicit visibility first seen here