summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-33096.rs
blob: 2501e1430b3d1ee658291e9cc42872f35052f0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// run-pass
// compile-flags: -g
// ignore-asmjs wasm2js does not support source maps yet

use std::ops::Deref;

trait Foo {
    fn foo() {}
}

impl Foo for u8 {}

fn bar<T: Deref>() where T::Target: Foo {
    <<T as Deref>::Target as Foo>::foo()
}

fn main() {
    bar::<&u8>();
}