diff options
Diffstat (limited to 'src/test/ui/associated-types/issue-32350.rs')
-rw-r--r-- | src/test/ui/associated-types/issue-32350.rs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/ui/associated-types/issue-32350.rs b/src/test/ui/associated-types/issue-32350.rs deleted file mode 100644 index bda21eb0e..000000000 --- a/src/test/ui/associated-types/issue-32350.rs +++ /dev/null @@ -1,29 +0,0 @@ -// check-pass - -// This is another instance of the "normalizations don't work" issue with -// defaulted associated types. - -#![feature(associated_type_defaults)] - -pub trait Emitter<'a> { - type Ctxt: 'a; - type CtxtBrw: 'a = &'a Self::Ctxt; - - fn get_cx(&'a self) -> Self::CtxtBrw; -} - -struct MyCtxt; - -struct MyEmitter { - ctxt: MyCtxt -} - -impl <'a> Emitter<'a> for MyEmitter { - type Ctxt = MyCtxt; - - fn get_cx(&'a self) -> &'a MyCtxt { - &self.ctxt - } -} - -fn main() {} |