Last active
January 31, 2017 23:30
-
-
Save cengiz-io/22853bc2ea25c181cd05ddb8b297aeac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./build/x86_64-unknown-linux-gnu/stage1/bin/rustc -Z verbose src/test/compile-fail/issue-16966.rs | |
error[E0282]: type annotations needed | |
--> src/test/compile-fail/issue-16966.rs:12:5 | |
| | |
12 | panic!(std::default::Default::default()); //~ ERROR type annotations needed [E0282] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for `M` | |
| | |
= note: this error originates in a macro outside of the current crate | |
error: aborting due to previous error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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() { | |
panic!(std::default::Default::default()); //~ ERROR type annotations needed [E0282] | |
//~| NOTE cannot infer type for `M` | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./build/x86_64-unknown-linux-gnu/stage1/bin/rustc -Z verbose src/test/compile-fail/issue-38812.rs | |
error[E0282]: type annotations needed | |
--> src/test/compile-fail/issue-38812.rs:12:17 | |
| | |
12 | let (x,) = (vec![],); //~ ERROR type annotations needed [E0282] | |
| ---- ^^^^^^ cannot infer type for `T` | |
| | | |
| consider giving a type to pattern | |
| | |
= note: this error originates in a macro outside of the current crate | |
error: aborting due to previous error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017 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() { | |
let (x,) = (vec![],); //~ ERROR type annotations needed [E0282] | |
//~| NOTE cannot infer type for `T` | |
//~| NOTE consider giving a type to pattern | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
failures: | |
---- [compile-fail] compile-fail/issue-16966.rs stdout ---- | |
error: /home/vagrant/rust-src/src/test/compile-fail/issue-16966.rs:12: expected error not found: type annotations needed [E0282] | |
error: /home/vagrant/rust-src/src/test/compile-fail/issue-16966.rs:12: expected note not found: cannot infer type for `M` | |
error: 0 unexpected errors found, 2 expected errors not found | |
status: exit code: 101 | |
command: /home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustc /home/vagrant/rust-src/src/test/compile-fail/issue-16966.rs -L /home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/test/compile-fail --target=x86_64-unknown-linux-gnu --error-format json -L /home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/test/compile-fail/issue-16966.stage2-x86_64-unknown-linux-gnu.compile-fail.libaux -C prefer-dynamic -o /home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/test/compile-fail/issue-16966.stage2-x86_64-unknown-linux-gnu -Crpath -O -Lnative=/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/rust-test-helpers | |
not found errors (from test file): [ | |
Error { | |
line_num: 12, | |
kind: Some( | |
Error | |
), | |
msg: "type annotations needed [E0282]" | |
}, | |
Error { | |
line_num: 12, | |
kind: Some( | |
Note | |
), | |
msg: "cannot infer type for `M`" | |
} | |
] | |
thread '[compile-fail] compile-fail/issue-16966.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:1119 | |
note: Run with `RUST_BACKTRACE=1` for a backtrace. | |
---- [compile-fail] compile-fail/issue-38812.rs stdout ---- | |
error: /home/vagrant/rust-src/src/test/compile-fail/issue-38812.rs:12: expected error not found: type annotations needed [E0282] | |
error: /home/vagrant/rust-src/src/test/compile-fail/issue-38812.rs:12: expected note not found: cannot infer type for `T` | |
error: 0 unexpected errors found, 2 expected errors not found | |
status: exit code: 101 | |
command: /home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustc /home/vagrant/rust-src/src/test/compile-fail/issue-38812.rs -L /home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/test/compile-fail --target=x86_64-unknown-linux-gnu --error-format json -L /home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/test/compile-fail/issue-38812.stage2-x86_64-unknown-linux-gnu.compile-fail.libaux -C prefer-dynamic -o /home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/test/compile-fail/issue-38812.stage2-x86_64-unknown-linux-gnu -Crpath -O -Lnative=/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/rust-test-helpers | |
not found errors (from test file): [ | |
Error { | |
line_num: 12, | |
kind: Some( | |
Error | |
), | |
msg: "type annotations needed [E0282]" | |
}, | |
Error { | |
line_num: 12, | |
kind: Some( | |
Note | |
), | |
msg: "cannot infer type for `T`" | |
} | |
] | |
thread '[compile-fail] compile-fail/issue-38812.rs' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:1119 | |
failures: | |
[compile-fail] compile-fail/issue-16966.rs | |
[compile-fail] compile-fail/issue-38812.rs | |
test result: FAILED. 2582 passed; 2 failed; 14 ignored; 0 measured | |
thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:329 | |
command did not execute successfully: "/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/compiletest" "--compile-lib-path" "/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--rustdoc-path" "/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" "--src-base" "/home/vagrant/rust-src/src/test/compile-fail" "--build-base" "/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/test/compile-fail" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "compile-fail" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/llvm/build/bin/FileCheck" "--host-rustcflags" "-Crpath -O" "--target-rustcflags" "-Crpath -O -Lnative=/home/vagrant/rust-src/build/x86_64-unknown-linux-gnu/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--llvm-version" "3.9.1\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp" "--android-cross-path" "" | |
expected success, got: exit code: 101 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment