5 pub struct TyCtxt<'tcx> {
6 gcx: &'tcx GlobalCtxt<'tcx>,
9 impl<'tcx> Deref for TyCtxt<'tcx> {
10 type Target = &'tcx GlobalCtxt<'tcx>;
12 fn deref(&self) -> &Self::Target {
17 pub struct GlobalCtxt<'tcx> {
18 pub sess: &'tcx Session,
28 fn foo<'tcx>(tcx: crate::TyCtxt<'tcx>) {
30 //~^ ERROR no field `opts` on type `TyCtxt<'tcx>`
31 //~| HELP one of the expressions' fields has a field of the same name