]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32995.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-32995.stderr
1 error: parenthesized parameters may only be used with a trait
2   --> $DIR/issue-32995.rs:14:17
3    |
4 LL |     let x: usize() = 1;
5    |                 ^^
6    |
7    = note: #[deny(parenthesized_params_in_types_and_modules)] on by default
8    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9    = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
10
11 error: parenthesized parameters may only be used with a trait
12   --> $DIR/issue-32995.rs:18:24
13    |
14 LL |     let b: ::std::boxed()::Box<_> = Box::new(1);
15    |                        ^^
16    |
17    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18    = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
19
20 error: parenthesized parameters may only be used with a trait
21   --> $DIR/issue-32995.rs:22:23
22    |
23 LL |     let p = ::std::str::()::from_utf8(b"foo").unwrap();
24    |                       ^^^^
25    |
26    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
27    = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
28
29 error: parenthesized parameters may only be used with a trait
30   --> $DIR/issue-32995.rs:26:34
31    |
32 LL |     let p = ::std::str::from_utf8::()(b"foo").unwrap();
33    |                                  ^^^^
34    |
35    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
36    = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
37
38 error: parenthesized parameters may only be used with a trait
39   --> $DIR/issue-32995.rs:30:30
40    |
41 LL |     let o : Box<::std::marker()::Send> = Box::new(1);
42    |                              ^^
43    |
44    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
45    = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
46
47 error: parenthesized parameters may only be used with a trait
48   --> $DIR/issue-32995.rs:34:37
49    |
50 LL |     let o : Box<Send + ::std::marker()::Sync> = Box::new(1);
51    |                                     ^^
52    |
53    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
54    = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
55
56 error: parenthesized parameters may only be used with a trait
57   --> $DIR/issue-32995.rs:40:14
58    |
59 LL |     let d : X() = Default::default();
60    |              ^^
61    |
62    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
63    = note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
64
65 error: aborting due to 7 previous errors
66