diff options
| author | Brian Koropoff <bkoropoff@gmail.com> | 2014-09-19 19:52:44 -0700 |
|---|---|---|
| committer | Brian Koropoff <bkoropoff@gmail.com> | 2014-09-20 00:18:55 -0700 |
| commit | fc3bd12a790b35b94b90c9646084418a6fb23960 (patch) | |
| tree | b260827f48516c08b0babb80199276d1b7d4181d | |
| parent | a92c3fb3eda104685d012c3e99677b931f22ff9a (diff) | |
| download | rust-fc3bd12a790b35b94b90c9646084418a6fb23960.tar.gz rust-fc3bd12a790b35b94b90c9646084418a6fb23960.zip | |
Add regression test for issue #17373
| -rw-r--r-- | src/test/compile-fail/issue-17373.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-17373.rs b/src/test/compile-fail/issue-17373.rs new file mode 100644 index 00000000000..9cfae2662ac --- /dev/null +++ b/src/test/compile-fail/issue-17373.rs @@ -0,0 +1,13 @@ +// Copyright 2014 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. + +fn main() { + *return; //~ ERROR type `!` cannot be dereferenced +} |
