summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/default.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/parser/default.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/parser/default.rs b/tests/ui/parser/default.rs
index 52338c1f1..d1058ceb2 100644
--- a/tests/ui/parser/default.rs
+++ b/tests/ui/parser/default.rs
@@ -14,7 +14,7 @@ impl Foo for u8 {
}
impl Foo for u16 {
- pub default fn foo<T: Default>() -> T { //~ ERROR unnecessary visibility qualifier
+ pub default fn foo<T: Default>() -> T { //~ ERROR visibility qualifiers are not permitted here
T::default()
}
}