| 1 | /* clang-format off |
| 2 | (use of deleted function|call to deleted constructor|attempting to reference a deleted function) |
| 3 | clang-format on |
| 4 | |
| 5 | |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License in the accompanying file |
| 9 | Licence.txt or at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | |
| 19 | |
| 20 | Distributed under the Boost Software License, Version 1.0. |
| 21 | (See accompanying file Licence.txt or copy at |
| 22 | http://www.boost.org/LICENSE_1_0.txt) |
| 23 | */ |
| 24 | |
| 25 | #include "../../include/boost/outcome/result.hpp" |
| 26 | |
| 27 | int main() |
| 28 | { |
| 29 | using namespace BOOST_OUTCOME_V2_NAMESPACE; |
| 30 | // Must not be possible to initialise a result with same R and S types |
| 31 | result<int, int> m(in_place_type<int>); |
| 32 | (void) m; |
| 33 | return 0; |
| 34 | } |
| 35 | |