about summary refs log tree commit diff
path: root/src/test/compile-fail/attempted-access-non-fatal.rs
blob: 7ead10b3f63371160b853fb20f28fa7fa30fead0 (plain)
1
2
3
4
5
6
// Check that bogus field access is non-fatal
fn main() {
    let x = 0;
    log(debug, x.foo); //! ERROR attempted access of field
    log(debug, x.bar); //! ERROR attempted access of field
}