Warnings on pub_restricted fields produce odd spans including the close-paren: ###### `src/lib.rs` ``` rust #![feature(pub_restricted)] pub mod foo; ``` ###### `src/foo.rs` ``` rust pub struct Foo { pub(super) bar: u8, } ``` ###### `cargo build` ``` warning: struct field is never used: `bar`, #[warn(dead_code)] on by default --> src/foo.rs:2:14 | 2 | pub(super) bar: u8, | ^^^^^^^^^ ``` ###### `rustc --version` ``` rustc 1.12.0-nightly (b30eff7ba 2016-08-05) ```
Warnings on pub_restricted fields produce odd spans including the close-paren:
src/lib.rs
src/foo.rs
cargo build
rustc --version
The text was updated successfully, but these errors were encountered: