]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32995.stderr
Rollup merge of #60492 - acrrd:issues/54054_chain, r=SimonSapin
[rust.git] / src / test / ui / issues / issue-32995.stderr
1 error: parenthesized type parameters may only be used with a `Fn` trait
2   --> $DIR/issue-32995.rs:4: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 type parameters may only be used with a `Fn` trait
12   --> $DIR/issue-32995.rs:8: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 type parameters may only be used with a `Fn` trait
21   --> $DIR/issue-32995.rs:12:25
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 type parameters may only be used with a `Fn` trait
30   --> $DIR/issue-32995.rs:16:36
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 type parameters may only be used with a `Fn` trait
39   --> $DIR/issue-32995.rs:20:35
40    |
41 LL |     let o : Box<dyn (::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 type parameters may only be used with a `Fn` trait
48   --> $DIR/issue-32995.rs:24:41
49    |
50 LL |     let o : Box<dyn 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 type parameters may only be used with a `Fn` trait
57   --> $DIR/issue-32995.rs:30: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