]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/regions/regions-bounded-method-type-parameters.rs
1 // Check that explicit region bounds are allowed on the various
2 // nominal types (but not on other types) and that they are type
6 // ignore-compare-mode-nll
7 //[nll] compile-flags: -Z borrowck=mir
12 fn some_method
<A
:'
static>(self) { }
15 fn caller
<'a
>(x
: &isize) {
16 Foo
.some_method
::<&'a
isize>();
17 //[base]~^ ERROR does not fulfill the required lifetime
18 //[nll]~^^ ERROR lifetime may not live long enough