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