E0008#
Warning name: redundant_modifier
The modifier (pub/priv) is redundant here, since this field has such
visibility by default.
Erroneous example#
///|
struct A {
priv value : Int
//^^
}
///|
pub struct B {
pub value : Int
//^
}
Suggestion#
Remove the visibility modifier on the field.
///|
struct A {
value : Int
}
///|
pub struct B {
value : Int
}