about summary refs log tree commit diff
path: root/tests/ui/trait-bounds/maybe-bound-has-path-args.rs
blob: 14a266704977501b6ee289fb7bf8085fb471c818 (plain)
1
2
3
4
5
6
7
trait Trait {}

fn test<T: ?self::<i32>::Trait>() {}
//~^ ERROR type arguments are not allowed on module `maybe_bound_has_path_args`
//~| ERROR bound modifier `?` can only be applied to `Sized`

fn main() {}