about summary refs log tree commit diff
path: root/tests/ui-fulldeps/internal-lints/query_completeness.rs
blob: 791f4599273caf008c12db6b5aa05d84427b5737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ compile-flags: -Z unstable-options
#![feature(rustc_private)]
#![deny(rustc::untracked_query_information)]

extern crate rustc_data_structures;

use rustc_data_structures::steal::Steal;

fn use_steal(x: Steal<()>) {
    let _ = x.is_stolen();
    //~^ ERROR `is_stolen` accesses information that is not tracked by the query system
}

fn main() {}