diff options
| author | Steven Allen <steven@stebalien.com> | 2016-06-19 13:50:37 -0400 |
|---|---|---|
| committer | Steven Allen <steven@stebalien.com> | 2016-06-20 14:23:43 -0400 |
| commit | 03d86ba2f55f74d72a22b3a67a50bb586fcd1930 (patch) | |
| tree | 50b56ddb502c09dcf8ba5f1603e3854affd93d6b /src | |
| parent | d06f1dcd7d3b9d9d5e0dc32ea7207a07e3408200 (diff) | |
| download | rust-03d86ba2f55f74d72a22b3a67a50bb586fcd1930.tar.gz rust-03d86ba2f55f74d72a22b3a67a50bb586fcd1930.zip | |
Add regression test for #23281
Closes #23281
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/compile-fail/issue-23281.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-23281.rs b/src/test/compile-fail/issue-23281.rs new file mode 100644 index 00000000000..5feeb36b1e4 --- /dev/null +++ b/src/test/compile-fail/issue-23281.rs @@ -0,0 +1,20 @@ +// 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. + +// ignore-tidy-linelength + +pub struct Struct; + +impl Struct { + pub fn function(funs: Vec<Fn() -> ()>) {} + //~^ ERROR the trait bound `std::ops::Fn() + 'static: std::marker::Sized` is not satisfied +} + +fn main() {} |
