]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-25076.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-25076.rs
CommitLineData
d9579d0f 1struct S;
85aaf69f 2
d9579d0f
AL
3trait InOut<T> { type Out; }
4
5fn do_fold<B, F: InOut<B, Out=B>>(init: B, f: F) {}
223e47cc 6
d9579d0f
AL
7fn bot<T>() -> T { loop {} }
8
9fn main() {
54a0048b 10 do_fold(bot(), ()); //~ ERROR `(): InOut<_>` is not satisfied
c34b1796 11}