/*
 * Use of this source code is governed by the MIT license that can be
 * found in the LICENSE file.
 */

package org.rust.ide.intentions

class SetImmutableIntentionTest : RsIntentionTestBase(SetImmutableIntention::class) {
    fun `test set mutable variable`() = doAvailableTest(
        """ fn main() { let var: &mut i3/*caret*/2 = 52; } """,
        """ fn main() { let var: &i3/*caret*/2 = 52; } """
    )

    fun `test set mutable parameter`() = doAvailableTest(
        """ fn func(param: &mut i3/*caret*/2) {} """,
        """ fn func(param: &i3/*caret*/2) {} """
    )
}
