]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parenthesised-deref-suggestion.rs
Fix string for raw pointer deref suggestion
[rust.git] / src / test / ui / parenthesised-deref-suggestion.rs
1 struct Session {
2     opts: u8,
3 }
4
5 fn main() {
6     let sess: &Session = &Session { opts: 0 };
7     (sess as *const Session).opts; //~ ERROR no field `opts` on type `*const Session`
8 }