]> git.proxmox.com Git - rustc.git/blob - tests/ui/lint/issue-108155.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / lint / issue-108155.rs
1 // check-pass
2 // check that `deref_into_dyn_supertrait` doesn't cause ICE by eagerly converting
3 // a cancelled lint
4
5 #![allow(deref_into_dyn_supertrait)]
6
7 trait Trait {}
8 impl std::ops::Deref for dyn Trait + Send + Sync {
9 type Target = dyn Trait;
10 fn deref(&self) -> &Self::Target {
11 self
12 }
13 }
14
15 fn main() {}