diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-25076.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-25076.rs b/src/test/ui/issues/issue-25076.rs new file mode 100644 index 000000000..6c5a55392 --- /dev/null +++ b/src/test/ui/issues/issue-25076.rs @@ -0,0 +1,11 @@ +struct S; + +trait InOut<T> { type Out; } + +fn do_fold<B, F: InOut<B, Out=B>>(init: B, f: F) {} + +fn bot<T>() -> T { loop {} } + +fn main() { + do_fold(bot(), ()); //~ ERROR `(): InOut<_>` is not satisfied +} |