]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-36744-without-calls.rs
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
[rust.git] / src / test / ui / issues / issue-36744-without-calls.rs
1 // build-pass
2 // Tests for an LLVM abort when storing a lifetime-parametric fn into
3 // context that is expecting one that is not lifetime-parametric
4 // (i.e., has no `for <'_>`).
5
6 pub struct A<'a>(&'a ());
7 pub struct S<T>(T);
8
9 pub fn bad<'s>(v: &mut S<fn(A<'s>)>, y: S<for<'b> fn(A<'b>)>) {
10     *v = y;
11 }
12
13 fn main() {}