diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2017-04-18 15:48:19 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2017-04-19 07:20:36 -0400 |
| commit | aa6c2b1cb73edad3ca1e8068151dd7254a3ebce1 (patch) | |
| tree | 6126f726df05ad464aeeab5c734f967f55b90bb6 /src/test | |
| parent | 467aaab50ef0c7284121d59d8f7af3184836e586 (diff) | |
| download | rust-aa6c2b1cb73edad3ca1e8068151dd7254a3ebce1.tar.gz rust-aa6c2b1cb73edad3ca1e8068151dd7254a3ebce1.zip | |
propagate obligations during overlap check
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/issue-41298.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-41298.rs b/src/test/run-pass/issue-41298.rs new file mode 100644 index 00000000000..2b9baa74674 --- /dev/null +++ b/src/test/run-pass/issue-41298.rs @@ -0,0 +1,16 @@ +// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +struct Function<T, F> { t: T, f: F } + +impl<T, R> Function<T, fn() -> R> { fn foo() { } } +impl<T, R> Function<T, fn() -> R> { fn bar() { } } + +fn main() { } |
